From 843b29b86a2e1d65424ce9ea511b390daab5bb21 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 13 Jan 2026 07:36:45 +0000 Subject: [PATCH] SDK regeneration --- reference.md | 538 ++++++++-- .../client/mgmt/AsyncEventStreamsClient.java | 10 +- .../auth0/client/mgmt/AsyncGroupsClient.java | 76 ++ .../auth0/client/mgmt/AsyncManagementApi.java | 7 + .../mgmt/AsyncRawEventStreamsClient.java | 35 +- .../client/mgmt/AsyncRawGroupsClient.java | 261 +++++ .../auth0/client/mgmt/AsyncUsersClient.java | 8 + .../auth0/client/mgmt/EventStreamsClient.java | 9 +- .../com/auth0/client/mgmt/GroupsClient.java | 74 ++ .../com/auth0/client/mgmt/ManagementApi.java | 7 + .../client/mgmt/RawEventStreamsClient.java | 26 +- .../auth0/client/mgmt/RawGroupsClient.java | 204 ++++ .../com/auth0/client/mgmt/UsersClient.java | 8 + .../mgmt/groups/AsyncMembersClient.java | 51 + .../mgmt/groups/AsyncRawMembersClient.java | 164 +++ .../client/mgmt/groups/MembersClient.java | 50 + .../client/mgmt/groups/RawMembersClient.java | 131 +++ .../GetGroupMembersRequestParameters.java | 307 ++++++ .../mgmt/prompts/AsyncRawRenderingClient.java | 31 +- .../mgmt/prompts/AsyncRenderingClient.java | 9 +- .../mgmt/prompts/RawRenderingClient.java | 14 +- .../client/mgmt/prompts/RenderingClient.java | 8 +- .../client/mgmt/types/AculConfigsItem.java | 55 + .../types/CertificateSubjectDnCredential.java | 235 +++++ .../types/ClientAuthenticationMethod.java | 12 +- ...entAuthenticationMethodPrivateKeyJwt.java} | 18 +- ...ticationMethodSelfSignedTlsClientAuth.java | 6 - ...ientAuthenticationMethodTlsClientAuth.java | 6 - .../ClientCreateAuthenticationMethod.java | 37 +- ...eateAuthenticationMethodPrivateKeyJwt.java | 108 ++ ...eateAuthenticationMethodTlsClientAuth.java | 108 ++ .../ClientSessionTransferConfiguration.java | 20 +- .../types/ConnectionAttributeIdentifier.java | 33 +- .../ConnectionAuthenticationMethods.java | 55 +- .../client/mgmt/types/ConnectionCommon.java | 58 +- .../mgmt/types/ConnectionEmailEmail.java | 175 ++++ ...onnectionEmailOtpAuthenticationMethod.java | 103 ++ .../ConnectionGatewayAuthenticationSms.java | 240 +++++ .../mgmt/types/ConnectionOptionsAdfs.java | 511 ++++++++++ .../types/ConnectionOptionsCommonSaml.java | 530 ++++++++++ .../mgmt/types/ConnectionOptionsEmail.java | 302 ++++++ .../types/ConnectionOptionsPingFederate.java | 742 ++++++++++++++ .../mgmt/types/ConnectionOptionsSaml.java | 936 +++++++++--------- .../mgmt/types/ConnectionOptionsSms.java | 513 ++++++++++ ...onnectionPhoneOtpAuthenticationMethod.java | 103 ++ .../mgmt/types/ConnectionProviderEnumSms.java | 85 ++ .../mgmt/types/ConnectionResponseCommon.java | 58 +- .../types/ConnectionResponseContentAd.java | 54 - .../types/ConnectionResponseContentAdfs.java | 70 +- .../ConnectionResponseContentAmazon.java | 54 - .../types/ConnectionResponseContentAol.java | 54 - .../types/ConnectionResponseContentApple.java | 54 - .../types/ConnectionResponseContentAuth0.java | 82 +- .../ConnectionResponseContentAuth0Oidc.java | 54 - .../ConnectionResponseContentAzureAd.java | 80 +- .../types/ConnectionResponseContentBaidu.java | 54 - .../ConnectionResponseContentBitbucket.java | 54 - .../types/ConnectionResponseContentBitly.java | 54 - .../types/ConnectionResponseContentBox.java | 54 - .../ConnectionResponseContentCustom.java | 54 - .../ConnectionResponseContentDaccount.java | 54 - .../ConnectionResponseContentDropbox.java | 54 - .../ConnectionResponseContentDwolla.java | 54 - .../types/ConnectionResponseContentEmail.java | 66 +- .../ConnectionResponseContentEvernote.java | 54 - ...nectionResponseContentEvernoteSandbox.java | 54 - .../types/ConnectionResponseContentExact.java | 54 - .../ConnectionResponseContentFacebook.java | 54 - .../ConnectionResponseContentFitbit.java | 54 - .../ConnectionResponseContentFlickr.java | 54 - .../ConnectionResponseContentGitHub.java | 54 - .../ConnectionResponseContentGoogleApps.java | 68 +- ...ConnectionResponseContentGoogleOAuth2.java | 54 - .../ConnectionResponseContentInstagram.java | 54 - .../types/ConnectionResponseContentIp.java | 68 +- .../types/ConnectionResponseContentLine.java | 54 - .../ConnectionResponseContentLinkedin.java | 54 - .../ConnectionResponseContentMiicard.java | 54 - .../ConnectionResponseContentOAuth1.java | 54 - .../ConnectionResponseContentOAuth2.java | 54 - .../ConnectionResponseContentOffice365.java | 68 +- .../types/ConnectionResponseContentOidc.java | 68 +- .../types/ConnectionResponseContentOkta.java | 68 +- .../ConnectionResponseContentPaypal.java | 54 - ...onnectionResponseContentPaypalSandbox.java | 54 - ...ConnectionResponseContentPingFederate.java | 94 +- ...nnectionResponseContentPlanningCenter.java | 54 - .../ConnectionResponseContentRenren.java | 54 - .../ConnectionResponseContentSalesforce.java | 54 - ...ionResponseContentSalesforceCommunity.java | 54 - ...ctionResponseContentSalesforceSandbox.java | 54 - .../types/ConnectionResponseContentSaml.java | 68 +- .../ConnectionResponseContentSharepoint.java | 68 +- .../types/ConnectionResponseContentShop.java | 54 - .../ConnectionResponseContentShopify.java | 54 - .../types/ConnectionResponseContentSms.java | 66 +- .../ConnectionResponseContentSoundcloud.java | 54 - .../ConnectionResponseContentTheCity.java | 54 - ...nnectionResponseContentTheCitySandbox.java | 54 - ...tionResponseContentThirtySevenSignals.java | 54 - .../ConnectionResponseContentTwitter.java | 54 - .../ConnectionResponseContentUntappd.java | 54 - .../ConnectionResponseContentVkontakte.java | 54 - .../types/ConnectionResponseContentWeibo.java | 54 - .../ConnectionResponseContentWindowsLive.java | 54 - .../ConnectionResponseContentWordpress.java | 54 - .../types/ConnectionResponseContentYahoo.java | 54 - .../ConnectionResponseContentYammer.java | 54 - .../ConnectionResponseContentYandex.java | 54 - .../ConnectionTemplateSyntaxEnumSms.java | 86 ++ .../mgmt/types/ConnectionTotpEmail.java | 118 +++ .../client/mgmt/types/ConnectionTotpSms.java | 118 +++ ...ticationMethodSelfSignedTlsClientAuth.java | 108 ++ .../mgmt/types/CreateConnectionCommon.java | 58 +- .../CreateConnectionRequestContentAd.java | 54 - .../CreateConnectionRequestContentAdfs.java | 70 +- .../CreateConnectionRequestContentAmazon.java | 54 - .../CreateConnectionRequestContentAol.java | 54 - .../CreateConnectionRequestContentApple.java | 54 - .../CreateConnectionRequestContentAuth0.java | 82 +- ...eateConnectionRequestContentAuth0Oidc.java | 54 - ...CreateConnectionRequestContentAzureAd.java | 84 +- .../CreateConnectionRequestContentBaidu.java | 54 - ...eateConnectionRequestContentBitbucket.java | 54 - .../CreateConnectionRequestContentBitly.java | 54 - .../CreateConnectionRequestContentBox.java | 54 - .../CreateConnectionRequestContentCustom.java | 54 - ...reateConnectionRequestContentDaccount.java | 54 - ...CreateConnectionRequestContentDropbox.java | 54 - .../CreateConnectionRequestContentDwolla.java | 54 - .../CreateConnectionRequestContentEmail.java | 66 +- ...reateConnectionRequestContentEvernote.java | 54 - ...nnectionRequestContentEvernoteSandbox.java | 54 - .../CreateConnectionRequestContentExact.java | 54 - ...reateConnectionRequestContentFacebook.java | 54 - .../CreateConnectionRequestContentFitbit.java | 54 - .../CreateConnectionRequestContentFlickr.java | 54 - .../CreateConnectionRequestContentGitHub.java | 54 - ...ateConnectionRequestContentGoogleApps.java | 68 +- ...eConnectionRequestContentGoogleOAuth2.java | 54 - ...eateConnectionRequestContentInstagram.java | 54 - .../CreateConnectionRequestContentIp.java | 68 +- .../CreateConnectionRequestContentLine.java | 54 - ...reateConnectionRequestContentLinkedin.java | 54 - ...CreateConnectionRequestContentMiicard.java | 54 - .../CreateConnectionRequestContentOAuth1.java | 54 - .../CreateConnectionRequestContentOAuth2.java | 54 - ...eateConnectionRequestContentOffice365.java | 68 +- .../CreateConnectionRequestContentOidc.java | 68 +- .../CreateConnectionRequestContentOkta.java | 68 +- .../CreateConnectionRequestContentPaypal.java | 54 - ...ConnectionRequestContentPaypalSandbox.java | 54 - ...eConnectionRequestContentPingFederate.java | 70 +- ...onnectionRequestContentPlanningCenter.java | 54 - .../CreateConnectionRequestContentRenren.java | 54 - ...ateConnectionRequestContentSalesforce.java | 54 - ...tionRequestContentSalesforceCommunity.java | 54 - ...ectionRequestContentSalesforceSandbox.java | 54 - .../CreateConnectionRequestContentSaml.java | 68 +- ...ateConnectionRequestContentSharepoint.java | 68 +- .../CreateConnectionRequestContentShop.java | 54 - ...CreateConnectionRequestContentShopify.java | 54 - .../CreateConnectionRequestContentSms.java | 66 +- ...ateConnectionRequestContentSoundcloud.java | 54 - ...CreateConnectionRequestContentTheCity.java | 54 - ...onnectionRequestContentTheCitySandbox.java | 54 - ...ctionRequestContentThirtySevenSignals.java | 54 - ...CreateConnectionRequestContentTwitter.java | 54 - ...CreateConnectionRequestContentUntappd.java | 54 - ...eateConnectionRequestContentVkontakte.java | 54 - .../CreateConnectionRequestContentWeibo.java | 54 - ...teConnectionRequestContentWindowsLive.java | 54 - ...eateConnectionRequestContentWordpress.java | 54 - .../CreateConnectionRequestContentYahoo.java | 54 - .../CreateConnectionRequestContentYammer.java | 54 - .../CreateConnectionRequestContentYandex.java | 54 - .../auth0/client/mgmt/types/CustomDomain.java | 45 + .../DefaultMethodEmailIdentifierEnum.java | 86 ++ .../mgmt/types/GetAculResponseContent.java | 60 +- .../types/GetCustomDomainResponseContent.java | 45 + .../types/GetGroupMembersResponseContent.java | 136 +++ .../mgmt/types/GetGroupResponseContent.java | 520 ++++++++++ ...GetUserGroupsPaginatedResponseContent.java | 212 ++++ .../auth0/client/mgmt/types/GroupMember.java | 212 ++++ .../mgmt/types/GroupMemberTypeEnum.java | 83 ++ .../client/mgmt/types/GroupTypeEnum.java | 93 ++ .../client/mgmt/types/IConnectionCommon.java | 4 - .../types/IConnectionOptionsCommonSaml.java | 41 + ...stAculsOffsetPaginatedResponseContent.java | 12 +- ...java => ListAculsResponseContentItem.java} | 132 ++- .../ListEventStreamsResponseContent.java | 38 +- .../ListGroupsPaginatedResponseContent.java | 212 ++++ .../types/ListGroupsRequestParameters.java | 489 +++++++++ .../auth0/client/mgmt/types/OauthScope.java | 20 + .../mgmt/types/UpdateAculResponseContent.java | 18 +- .../UpdateConnectionRequestContentAd.java | 264 +++++ .../UpdateConnectionRequestContentAdfs.java | 291 ++++++ .../UpdateConnectionRequestContentAmazon.java | 265 +++++ .../UpdateConnectionRequestContentAol.java | 264 +++++ .../UpdateConnectionRequestContentApple.java | 265 +++++ .../UpdateConnectionRequestContentAuth0.java | 291 ++++++ ...dateConnectionRequestContentAuth0Oidc.java | 265 +++++ ...UpdateConnectionRequestContentAzureAd.java | 291 ++++++ .../UpdateConnectionRequestContentBaidu.java | 265 +++++ ...dateConnectionRequestContentBitbucket.java | 265 +++++ .../UpdateConnectionRequestContentBitly.java | 265 +++++ .../UpdateConnectionRequestContentBox.java | 264 +++++ .../UpdateConnectionRequestContentCustom.java | 265 +++++ ...pdateConnectionRequestContentDaccount.java | 265 +++++ ...UpdateConnectionRequestContentDropbox.java | 265 +++++ .../UpdateConnectionRequestContentDwolla.java | 265 +++++ .../UpdateConnectionRequestContentEmail.java | 265 +++++ ...pdateConnectionRequestContentEvernote.java | 265 +++++ ...nnectionRequestContentEvernoteSandbox.java | 265 +++++ .../UpdateConnectionRequestContentExact.java | 265 +++++ ...pdateConnectionRequestContentFacebook.java | 265 +++++ .../UpdateConnectionRequestContentFitbit.java | 265 +++++ .../UpdateConnectionRequestContentFlickr.java | 265 +++++ .../UpdateConnectionRequestContentGitHub.java | 265 +++++ ...ateConnectionRequestContentGoogleApps.java | 291 ++++++ ...eConnectionRequestContentGoogleOAuth2.java | 265 +++++ ...dateConnectionRequestContentInstagram.java | 265 +++++ .../UpdateConnectionRequestContentIp.java | 290 ++++++ .../UpdateConnectionRequestContentLine.java | 265 +++++ ...pdateConnectionRequestContentLinkedin.java | 265 +++++ ...UpdateConnectionRequestContentMiicard.java | 265 +++++ .../UpdateConnectionRequestContentOAuth1.java | 265 +++++ .../UpdateConnectionRequestContentOAuth2.java | 265 +++++ ...dateConnectionRequestContentOffice365.java | 291 ++++++ .../UpdateConnectionRequestContentOidc.java | 291 ++++++ .../UpdateConnectionRequestContentOkta.java | 291 ++++++ .../UpdateConnectionRequestContentPaypal.java | 265 +++++ ...ConnectionRequestContentPaypalSandbox.java | 265 +++++ ...eConnectionRequestContentPingFederate.java | 291 ++++++ ...onnectionRequestContentPlanningCenter.java | 265 +++++ .../UpdateConnectionRequestContentRenren.java | 265 +++++ ...ateConnectionRequestContentSalesforce.java | 265 +++++ ...tionRequestContentSalesforceCommunity.java | 265 +++++ ...ectionRequestContentSalesforceSandbox.java | 265 +++++ .../UpdateConnectionRequestContentSaml.java | 291 ++++++ ...ateConnectionRequestContentSharepoint.java | 291 ++++++ .../UpdateConnectionRequestContentShop.java | 265 +++++ ...UpdateConnectionRequestContentShopify.java | 265 +++++ .../UpdateConnectionRequestContentSms.java | 264 +++++ ...ateConnectionRequestContentSoundcloud.java | 265 +++++ ...UpdateConnectionRequestContentTheCity.java | 265 +++++ ...onnectionRequestContentTheCitySandbox.java | 265 +++++ ...ctionRequestContentThirtySevenSignals.java | 265 +++++ ...UpdateConnectionRequestContentTwitter.java | 265 +++++ ...UpdateConnectionRequestContentUntappd.java | 265 +++++ ...dateConnectionRequestContentVkontakte.java | 265 +++++ .../UpdateConnectionRequestContentWeibo.java | 265 +++++ ...teConnectionRequestContentWindowsLive.java | 265 +++++ ...dateConnectionRequestContentWordpress.java | 265 +++++ .../UpdateConnectionRequestContentYahoo.java | 265 +++++ .../UpdateConnectionRequestContentYammer.java | 265 +++++ .../UpdateConnectionRequestContentYandex.java | 265 +++++ .../UpdateCustomDomainResponseContent.java | 45 + .../mgmt/types/X509CertificateCredential.java | 179 ++++ .../client/mgmt/users/AsyncGroupsClient.java | 52 + .../mgmt/users/AsyncRawGroupsClient.java | 164 +++ .../auth0/client/mgmt/users/GroupsClient.java | 50 + .../client/mgmt/users/RawGroupsClient.java | 131 +++ .../types/GetUserGroupsRequestParameters.java | 307 ++++++ .../client/mgmt/CustomDomainsWireTest.java | 9 +- .../client/mgmt/EventStreamsWireTest.java | 64 +- .../client/mgmt/GroupsMembersWireTest.java | 94 ++ .../com/auth0/client/mgmt/GroupsWireTest.java | 153 +++ .../client/mgmt/PromptsRenderingWireTest.java | 14 +- .../client/mgmt/UsersGroupsWireTest.java | 94 ++ 270 files changed, 27662 insertions(+), 7568 deletions(-) create mode 100644 src/main/java/com/auth0/client/mgmt/AsyncGroupsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/GroupsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/RawGroupsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/groups/AsyncMembersClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/groups/MembersClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/CertificateSubjectDnCredential.java rename src/main/java/com/auth0/client/mgmt/types/{PrivateKeyJwt.java => ClientAuthenticationMethodPrivateKeyJwt.java} (78%) create mode 100644 src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodPrivateKeyJwt.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodTlsClientAuth.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionEmailEmail.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionEmailOtpAuthenticationMethod.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAdfs.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonSaml.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPingFederate.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSms.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionPhoneOtpAuthenticationMethod.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionProviderEnumSms.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionTemplateSyntaxEnumSms.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionTotpEmail.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionTotpSms.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/CreateClientAuthenticationMethodSelfSignedTlsClientAuth.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/DefaultMethodEmailIdentifierEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/GetGroupMembersResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/GetUserGroupsPaginatedResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/GroupMember.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/GroupMemberTypeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/GroupTypeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonSaml.java rename src/main/java/com/auth0/client/mgmt/types/{AculResponseContent.java => ListAculsResponseContentItem.java} (76%) create mode 100644 src/main/java/com/auth0/client/mgmt/types/ListGroupsPaginatedResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAd.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAdfs.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAmazon.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAol.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentApple.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0Oidc.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAzureAd.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBaidu.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitbucket.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitly.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBox.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentCustom.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDaccount.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDropbox.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDwolla.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEmail.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernote.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernoteSandbox.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentExact.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFacebook.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFitbit.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFlickr.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGitHub.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleApps.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleOAuth2.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentInstagram.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentIp.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLine.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLinkedin.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentMiicard.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth1.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth2.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOffice365.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOkta.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypal.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypalSandbox.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPingFederate.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPlanningCenter.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentRenren.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforce.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceCommunity.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceSandbox.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSaml.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSharepoint.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShop.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShopify.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSms.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSoundcloud.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTheCity.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTheCitySandbox.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentThirtySevenSignals.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTwitter.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentUntappd.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentVkontakte.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWeibo.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWindowsLive.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWordpress.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYahoo.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYammer.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYandex.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java create mode 100644 src/main/java/com/auth0/client/mgmt/users/AsyncGroupsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/users/GroupsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java create mode 100644 src/main/java/com/auth0/client/mgmt/users/types/GetUserGroupsRequestParameters.java create mode 100644 src/test/java/com/auth0/client/mgmt/GroupsMembersWireTest.java create mode 100644 src/test/java/com/auth0/client/mgmt/GroupsWireTest.java create mode 100644 src/test/java/com/auth0/client/mgmt/UsersGroupsWireTest.java diff --git a/reference.md b/reference.md index f3faa4c56..df4f4df4f 100644 --- a/reference.md +++ b/reference.md @@ -1,6 +1,6 @@ # Reference ## Actions -
client.actions.list() -> SyncPagingIterable<Action> +
client.actions.list() -> SyncPagingIterable&lt;Action&gt;
@@ -727,7 +727,7 @@ client.branding().update(
## ClientGrants -
client.clientGrants.list() -> SyncPagingIterable<ClientGrantResponseContent> +
client.clientGrants.list() -> SyncPagingIterable&lt;ClientGrantResponseContent&gt;
@@ -1097,7 +1097,7 @@ client.clientGrants().update(
## Clients -
client.clients.list() -> SyncPagingIterable<Client> +
client.clients.list() -> SyncPagingIterable&lt;Client&gt;
@@ -2441,7 +2441,7 @@ client.clients().rotateSecret("id");
## ConnectionProfiles -
client.connectionProfiles.list() -> SyncPagingIterable<ConnectionProfile> +
client.connectionProfiles.list() -> SyncPagingIterable&lt;ConnectionProfile&gt;
@@ -2921,7 +2921,7 @@ client.connectionProfiles().update(
## Connections -
client.connections.list() -> SyncPagingIterable<ConnectionForList> +
client.connections.list() -> SyncPagingIterable&lt;ConnectionForList&gt;
@@ -3515,7 +3515,7 @@ client.connections().checkStatus("id");
## CustomDomains -
client.customDomains.list() -> List<CustomDomain> +
client.customDomains.list() -> List&lt;CustomDomain&gt;
@@ -4052,7 +4052,7 @@ client.customDomains().verify("id");
## DeviceCredentials -
client.deviceCredentials.list() -> SyncPagingIterable<DeviceCredential> +
client.deviceCredentials.list() -> SyncPagingIterable&lt;DeviceCredential&gt;
@@ -4782,7 +4782,7 @@ client.emailTemplates().update(
## EventStreams -
client.eventStreams.list() -> ListEventStreamsResponseContent +
client.eventStreams.list() -> SyncPagingIterable&lt;EventStreamResponseContent&gt;
@@ -5127,7 +5127,7 @@ client.eventStreams().test(
## Flows -
client.flows.list() -> SyncPagingIterable<FlowSummary> +
client.flows.list() -> SyncPagingIterable&lt;FlowSummary&gt;
@@ -5423,7 +5423,7 @@ client.flows().update(
## Forms -
client.forms.list() -> SyncPagingIterable<FormSummary> +
client.forms.list() -> SyncPagingIterable&lt;FormSummary&gt;
@@ -5804,7 +5804,7 @@ client.forms().update(
## UserGrants -
client.userGrants.list() -> SyncPagingIterable<UserGrant> +
client.userGrants.list() -> SyncPagingIterable&lt;UserGrant&gt;
@@ -6029,12 +6029,194 @@ client.userGrants().delete("id");
+ + +
+ +## Groups +
client.groups.list() -> SyncPagingIterable&lt;Group&gt; +
+
+ +#### 📝 Description + +
+
+ +
+
+ +List all groups in your tenant. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.groups().list( + ListGroupsRequestParameters + .builder() + .connectionId( + OptionalNullable.of("connection_id") + ) + .name( + OptionalNullable.of("name") + ) + .externalId( + OptionalNullable.of("external_id") + ) + .fields( + OptionalNullable.of("fields") + ) + .includeFields( + OptionalNullable.of(true) + ) + .from( + OptionalNullable.of("from") + ) + .take( + OptionalNullable.of(1) + ) + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**connectionId:** `Optional` — Filter groups by connection ID. + +
+
+ +
+
+ +**name:** `Optional` — Filter groups by name. + +
+
+ +
+
+ +**externalId:** `Optional` — Filter groups by external ID. + +
+
+ +
+
+ +**fields:** `Optional` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields + +
+
+ +
+
+ +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). + +
+
+ +
+
+ +**from:** `Optional` — Optional Id from which to start selection. + +
+
+ +
+
+ +**take:** `Optional` — Number of results per page. Defaults to 50. + +
+
+
+
+ + +
+
+
+ +
client.groups.get(id) -> GetGroupResponseContent +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieve a group by its ID. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.groups().get("id"); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — Unique identifier for the group (service-generated). + +
+
+
+
+ +
## Hooks -
client.hooks.list() -> SyncPagingIterable<Hook> +
client.hooks.list() -> SyncPagingIterable&lt;Hook&gt;
@@ -6514,7 +6696,7 @@ client.jobs().get("id");
## LogStreams -
client.logStreams.list() -> List<LogStreamResponseSchema> +
client.logStreams.list() -> List&lt;LogStreamResponseSchema&gt;
@@ -7161,7 +7343,7 @@ client.logStreams().update(
## Logs -
client.logs.list() -> SyncPagingIterable<Log> +
client.logs.list() -> SyncPagingIterable&lt;Log&gt;
@@ -7375,7 +7557,7 @@ client.logs().get("id");
## NetworkAcls -
client.networkAcls.list() -> SyncPagingIterable<NetworkAclsResponseContent> +
client.networkAcls.list() -> SyncPagingIterable&lt;NetworkAclsResponseContent&gt;
@@ -7859,7 +8041,7 @@ client.networkAcls().update(
## Organizations -
client.organizations.list() -> SyncPagingIterable<Organization> +
client.organizations.list() -> SyncPagingIterable&lt;Organization&gt;
@@ -8613,7 +8795,7 @@ client.refreshTokens().update(
## ResourceServers -
client.resourceServers.list() -> SyncPagingIterable<ResourceServer> +
client.resourceServers.list() -> SyncPagingIterable&lt;ResourceServer&gt;
@@ -9182,7 +9364,7 @@ client.resourceServers().update(
## Roles -
client.roles.list() -> SyncPagingIterable<Role> +
client.roles.list() -> SyncPagingIterable&lt;Role&gt;
@@ -9531,7 +9713,7 @@ client.roles().update(
## Rules -
client.rules.list() -> SyncPagingIterable<Rule> +
client.rules.list() -> SyncPagingIterable&lt;Rule&gt;
@@ -9960,7 +10142,7 @@ client.rules().update(
## RulesConfigs -
client.rulesConfigs.list() -> List<RulesConfig> +
client.rulesConfigs.list() -> List&lt;RulesConfig&gt;
@@ -10124,7 +10306,7 @@ client.rulesConfigs().delete("key");
## SelfServiceProfiles -
client.selfServiceProfiles.list() -> SyncPagingIterable<SelfServiceProfile> +
client.selfServiceProfiles.list() -> SyncPagingIterable&lt;SelfServiceProfile&gt;
@@ -10791,7 +10973,7 @@ client.stats().getActiveUsersCount();
-
client.stats.getDaily() -> List<DailyStats> +
client.stats.getDaily() -> List&lt;DailyStats&gt;
@@ -11203,7 +11385,7 @@ client.tickets().changePassword(
## TokenExchangeProfiles -
client.tokenExchangeProfiles.list() -> SyncPagingIterable<TokenExchangeProfileResponseContent> +
client.tokenExchangeProfiles.list() -> SyncPagingIterable&lt;TokenExchangeProfileResponseContent&gt;
@@ -11565,7 +11747,7 @@ client.tokenExchangeProfiles().update(
## UserAttributeProfiles -
client.userAttributeProfiles.list() -> SyncPagingIterable<UserAttributeProfile> +
client.userAttributeProfiles.list() -> SyncPagingIterable&lt;UserAttributeProfile&gt;
@@ -12276,7 +12458,7 @@ client.userBlocks().delete("id");
## Users -
client.users.list() -> SyncPagingIterable<UserResponseSchema> +
client.users.list() -> SyncPagingIterable&lt;UserResponseSchema&gt;
@@ -12638,7 +12820,7 @@ client.users().create(
-
client.users.listUsersByEmail() -> List<UserResponseSchema> +
client.users.listUsersByEmail() -> List&lt;UserResponseSchema&gt;
@@ -13260,7 +13442,7 @@ client.users().revokeAccess(
## Actions Versions -
client.actions.versions.list(actionId) -> SyncPagingIterable<ActionVersion> +
client.actions.versions.list(actionId) -> SyncPagingIterable&lt;ActionVersion&gt;
@@ -13573,7 +13755,7 @@ client.actions().triggers().list();
## Actions Triggers Bindings -
client.actions.triggers.bindings.list(triggerId) -> SyncPagingIterable<ActionBinding> +
client.actions.triggers.bindings.list(triggerId) -> SyncPagingIterable&lt;ActionBinding&gt;
@@ -15986,7 +16168,7 @@ client.branding().phone().templates().test(
## ClientGrants Organizations -
client.clientGrants.organizations.list(id) -> SyncPagingIterable<Organization> +
client.clientGrants.organizations.list(id) -> SyncPagingIterable&lt;Organization&gt;
@@ -16054,7 +16236,7 @@ client.clientGrants().organizations().list(
## Clients Credentials -
client.clients.credentials.list(clientId) -> List<ClientCredential> +
client.clients.credentials.list(clientId) -> List&lt;ClientCredential&gt;
@@ -16461,7 +16643,7 @@ client.clients().credentials().update(
## Clients Connections -
client.clients.connections.get(id) -> SyncPagingIterable<ConnectionForList> +
client.clients.connections.get(id) -> SyncPagingIterable&lt;ConnectionForList&gt;
@@ -16581,7 +16763,7 @@ client.clients().connections().get(
## Connections Clients -
client.connections.clients.get(id) -> SyncPagingIterable<ConnectionEnabledClient> +
client.connections.clients.get(id) -> SyncPagingIterable&lt;ConnectionEnabledClient&gt;
@@ -17015,7 +17197,7 @@ client.connections().directoryProvisioning().getDefaultMapping("id");
## Connections Keys -
client.connections.keys.get(id) -> List<ConnectionKey> +
client.connections.keys.get(id) -> List&lt;ConnectionKey&gt;
@@ -17570,7 +17752,7 @@ client.connections().directoryProvisioning().synchronizations().create("id");
## Connections ScimConfiguration Tokens -
client.connections.scimConfiguration.tokens.get(id) -> List<ScimTokenItem> +
client.connections.scimConfiguration.tokens.get(id) -> List&lt;ScimTokenItem&gt;
@@ -18143,7 +18325,7 @@ client.emails().provider().update(
## EventStreams Deliveries -
client.eventStreams.deliveries.list(id) -> List<EventStreamDelivery> +
client.eventStreams.deliveries.list(id) -> List&lt;EventStreamDelivery&gt;
@@ -18429,7 +18611,7 @@ client.eventStreams().redeliveries().createById("id", "event_id");
## Flows Executions -
client.flows.executions.list(flowId) -> SyncPagingIterable<FlowExecutionSummary> +
client.flows.executions.list(flowId) -> SyncPagingIterable&lt;FlowExecutionSummary&gt;
@@ -18607,7 +18789,7 @@ client.flows().executions().delete("flow_id", "execution_id");
## Flows Vault Connections -
client.flows.vault.connections.list() -> SyncPagingIterable<FlowsVaultConnectionSummary> +
client.flows.vault.connections.list() -> SyncPagingIterable&lt;FlowsVaultConnectionSummary&gt;
@@ -18871,6 +19053,110 @@ client.flows().vault().connections().update(
+ + +
+ +## Groups Members +
client.groups.members.get(id) -> SyncPagingIterable&lt;GroupMember&gt; +
+
+ +#### 📝 Description + +
+
+ +
+
+ +List all users that are a member of this group. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.groups().members().get( + "id", + GetGroupMembersRequestParameters + .builder() + .fields( + OptionalNullable.of("fields") + ) + .includeFields( + OptionalNullable.of(true) + ) + .from( + OptionalNullable.of("from") + ) + .take( + OptionalNullable.of(1) + ) + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — Unique identifier for the group (service-generated). + +
+
+ +
+
+ +**fields:** `Optional` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields + +
+
+ +
+
+ +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). + +
+
+ +
+
+ +**from:** `Optional` — Optional Id from which to start selection. + +
+
+ +
+
+ +**take:** `Optional` — Number of results per page. Defaults to 50. + +
+
+
+
+ +
@@ -19087,7 +19373,7 @@ client.guardian().enrollments().delete("id");
## Guardian Factors -
client.guardian.factors.list() -> List<GuardianFactor> +
client.guardian.factors.list() -> List&lt;GuardianFactor&gt;
@@ -19195,7 +19481,7 @@ client.guardian().factors().set(
## Guardian Policies -
client.guardian.policies.list() -> List<MfaPolicyEnum> +
client.guardian.policies.list() -> List&lt;MfaPolicyEnum&gt;
@@ -19242,7 +19528,7 @@ client.guardian().policies().list();
-
client.guardian.policies.set(request) -> List<MfaPolicyEnum> +
client.guardian.policies.set(request) -> List&lt;MfaPolicyEnum&gt;
@@ -19907,7 +20193,7 @@ client.guardian().factors().pushNotification().updateApnsProvider(
-
client.guardian.factors.pushNotification.setFcmProvider(request) -> Map<String, Object> +
client.guardian.factors.pushNotification.setFcmProvider(request) -> Map&lt;String, Object&gt;
@@ -19965,7 +20251,7 @@ client.guardian().factors().pushNotification().setFcmProvider(
-
client.guardian.factors.pushNotification.updateFcmProvider(request) -> Map<String, Object> +
client.guardian.factors.pushNotification.updateFcmProvider(request) -> Map&lt;String, Object&gt;
@@ -20023,7 +20309,7 @@ client.guardian().factors().pushNotification().updateFcmProvider(
-
client.guardian.factors.pushNotification.setFcmv1Provider(request) -> Map<String, Object> +
client.guardian.factors.pushNotification.setFcmv1Provider(request) -> Map&lt;String, Object&gt;
@@ -20081,7 +20367,7 @@ client.guardian().factors().pushNotification().setFcmv1Provider(
-
client.guardian.factors.pushNotification.updateFcmv1Provider(request) -> Map<String, Object> +
client.guardian.factors.pushNotification.updateFcmv1Provider(request) -> Map&lt;String, Object&gt;
@@ -20970,7 +21256,7 @@ client.guardian().factors().duo().settings().update(
## Hooks Secrets -
client.hooks.secrets.get(id) -> Map<String, String> +
client.hooks.secrets.get(id) -> Map&lt;String, String&gt;
@@ -21638,7 +21924,7 @@ client.keys().customSigning().delete();
## Keys Encryption -
client.keys.encryption.list() -> SyncPagingIterable<EncryptionKey> +
client.keys.encryption.list() -> SyncPagingIterable&lt;EncryptionKey&gt;
@@ -22050,7 +22336,7 @@ client.keys().encryption().createPublicWrappingKey("kid");
## Keys Signing -
client.keys.signing.list() -> List<SigningKeys> +
client.keys.signing.list() -> List&lt;SigningKeys&gt;
@@ -22237,7 +22523,7 @@ client.keys().signing().revoke("kid");
## Organizations ClientGrants -
client.organizations.clientGrants.list(id) -> SyncPagingIterable<OrganizationClientGrant> +
client.organizations.clientGrants.list(id) -> SyncPagingIterable&lt;OrganizationClientGrant&gt;
@@ -22448,7 +22734,7 @@ client.organizations().clientGrants().delete("id", "grant_id");
## Organizations DiscoveryDomains -
client.organizations.discoveryDomains.list(id) -> SyncPagingIterable<OrganizationDiscoveryDomain> +
client.organizations.discoveryDomains.list(id) -> SyncPagingIterable&lt;OrganizationDiscoveryDomain&gt;
@@ -22885,7 +23171,7 @@ client.organizations().discoveryDomains().update(
## Organizations EnabledConnections -
client.organizations.enabledConnections.list(id) -> SyncPagingIterable<OrganizationConnection> +
client.organizations.enabledConnections.list(id) -> SyncPagingIterable&lt;OrganizationConnection&gt;
@@ -23290,7 +23576,7 @@ client.organizations().enabledConnections().update(
## Organizations Invitations -
client.organizations.invitations.list(id) -> SyncPagingIterable<OrganizationInvitation> +
client.organizations.invitations.list(id) -> SyncPagingIterable&lt;OrganizationInvitation&gt;
@@ -23684,7 +23970,7 @@ client.organizations().invitations().delete("id", "invitation_id");
## Organizations Members -
client.organizations.members.list(id) -> SyncPagingIterable<OrganizationMember> +
client.organizations.members.list(id) -> SyncPagingIterable&lt;OrganizationMember&gt;
@@ -23937,7 +24223,7 @@ client.organizations().members().delete(
## Organizations Members Roles -
client.organizations.members.roles.list(id, userId) -> SyncPagingIterable<Role> +
client.organizations.members.roles.list(id, userId) -> SyncPagingIterable&lt;Role&gt;
@@ -24203,7 +24489,7 @@ client.organizations().members().roles().delete(
## Prompts Rendering -
client.prompts.rendering.list() -> SyncPagingIterable<AculResponseContent> +
client.prompts.rendering.list() -> SyncPagingIterable&lt;ListAculsResponseContentItem&gt;
@@ -24587,7 +24873,7 @@ client.prompts().rendering().update(
## Prompts CustomText -
client.prompts.customText.get(prompt, language) -> Map<String, Object> +
client.prompts.customText.get(prompt, language) -> Map&lt;String, Object&gt;
@@ -24726,7 +25012,7 @@ client.prompts().customText().set(
## Prompts Partials -
client.prompts.partials.get(prompt) -> Map<String, Object> +
client.prompts.partials.get(prompt) -> Map&lt;String, Object&gt;
@@ -25046,7 +25332,7 @@ client.riskAssessments().settings().newDevice().update(
## Roles Permissions -
client.roles.permissions.list(id) -> SyncPagingIterable<PermissionsResponsePayload> +
client.roles.permissions.list(id) -> SyncPagingIterable&lt;PermissionsResponsePayload&gt;
@@ -25291,7 +25577,7 @@ client.roles().permissions().delete(
## Roles Users -
client.roles.users.list(id) -> SyncPagingIterable<RoleUser> +
client.roles.users.list(id) -> SyncPagingIterable&lt;RoleUser&gt;
@@ -25463,7 +25749,7 @@ client.roles().users().assign(
## SelfServiceProfiles CustomText -
client.selfServiceProfiles.customText.list(id, language, page) -> Map<String, String> +
client.selfServiceProfiles.customText.list(id, language, page) -> Map&lt;String, String&gt;
@@ -25533,7 +25819,7 @@ client.selfServiceProfiles().customText().list("id", "en", "get-started");
-
client.selfServiceProfiles.customText.set(id, language, page, request) -> Map<String, String> +
client.selfServiceProfiles.customText.set(id, language, page, request) -> Map&lt;String, String&gt;
@@ -26197,7 +26483,7 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso
## Users AuthenticationMethods -
client.users.authenticationMethods.list(id) -> SyncPagingIterable<UserAuthenticationMethod> +
client.users.authenticationMethods.list(id) -> SyncPagingIterable&lt;UserAuthenticationMethod&gt;
@@ -26421,7 +26707,7 @@ client.users().authenticationMethods().create(
-
client.users.authenticationMethods.set(id, request) -> List<SetUserAuthenticationMethodResponseContent> +
client.users.authenticationMethods.set(id, request) -> List&lt;SetUserAuthenticationMethodResponseContent&gt;
@@ -26797,7 +27083,7 @@ client.users().authenticators().deleteAll("id");
## Users ConnectedAccounts -
client.users.connectedAccounts.list(id) -> SyncPagingIterable<ConnectedAccount> +
client.users.connectedAccounts.list(id) -> SyncPagingIterable&lt;ConnectedAccount&gt;
@@ -26879,7 +27165,7 @@ client.users().connectedAccounts().list(
## Users Enrollments -
client.users.enrollments.get(id) -> List<UsersEnrollment> +
client.users.enrollments.get(id) -> List&lt;UsersEnrollment&gt;
@@ -26934,7 +27220,7 @@ client.users().enrollments().get("id");
## Users FederatedConnectionsTokensets -
client.users.federatedConnectionsTokensets.list(id) -> List<FederatedConnectionTokenSet> +
client.users.federatedConnectionsTokensets.list(id) -> List&lt;FederatedConnectionTokenSet&gt;
@@ -27032,12 +27318,116 @@ client.users().federatedConnectionsTokensets().delete("id", "tokenset_id");
+ + +
+ +## Users Groups +
client.users.groups.get(id) -> SyncPagingIterable&lt;UserGroupsResponseSchema&gt; +
+
+ +#### 📝 Description + +
+
+ +
+
+ +List all groups to which this user belongs. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.users().groups().get( + "id", + GetUserGroupsRequestParameters + .builder() + .fields( + OptionalNullable.of("fields") + ) + .includeFields( + OptionalNullable.of(true) + ) + .from( + OptionalNullable.of("from") + ) + .take( + OptionalNullable.of(1) + ) + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — ID of the user to list groups for. + +
+
+ +
+
+ +**fields:** `Optional` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields + +
+
+ +
+
+ +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). + +
+
+ +
+
+ +**from:** `Optional` — Optional Id from which to start selection. + +
+
+ +
+
+ +**take:** `Optional` — Number of results per page. Defaults to 50. + +
+
+
+
+ +
## Users Identities -
client.users.identities.link(id, request) -> List<UserIdentity> +
client.users.identities.link(id, request) -> List&lt;UserIdentity&gt;
@@ -27155,7 +27545,7 @@ client.users().identities().link(
-
client.users.identities.delete(id, provider, userId) -> List<DeleteUserIdentityResponseContentItem> +
client.users.identities.delete(id, provider, userId) -> List&lt;DeleteUserIdentityResponseContentItem&gt;
@@ -27228,7 +27618,7 @@ client.users().identities().delete("id", UserIdentityProviderEnum.AD, "user_id")
## Users Logs -
client.users.logs.list(id) -> SyncPagingIterable<Log> +
client.users.logs.list(id) -> SyncPagingIterable&lt;Log&gt;
@@ -27455,7 +27845,7 @@ client.users().multifactor().deleteProvider("id", UserMultifactorProviderEnum.DU
## Users Organizations -
client.users.organizations.list(id) -> SyncPagingIterable<Organization> +
client.users.organizations.list(id) -> SyncPagingIterable&lt;Organization&gt;
@@ -27548,7 +27938,7 @@ client.users().organizations().list(
## Users Permissions -
client.users.permissions.list(id) -> SyncPagingIterable<UserPermissionSchema> +
client.users.permissions.list(id) -> SyncPagingIterable&lt;UserPermissionSchema&gt;
@@ -27873,7 +28263,7 @@ client.users().riskAssessments().clear(
## Users Roles -
client.users.roles.list(id) -> SyncPagingIterable<Role> +
client.users.roles.list(id) -> SyncPagingIterable&lt;Role&gt;
@@ -28112,7 +28502,7 @@ client.users().roles().delete(
## Users RefreshToken -
client.users.refreshToken.list(userId) -> SyncPagingIterable<RefreshTokenResponseContent> +
client.users.refreshToken.list(userId) -> SyncPagingIterable&lt;RefreshTokenResponseContent&gt;
@@ -28248,7 +28638,7 @@ client.users().refreshToken().delete("user_id");
## Users Sessions -
client.users.sessions.list(userId) -> SyncPagingIterable<SessionResponseContent> +
client.users.sessions.list(userId) -> SyncPagingIterable&lt;SessionResponseContent&gt;
@@ -28384,7 +28774,7 @@ client.users().sessions().delete("user_id");
## VerifiableCredentials Verification Templates -
client.verifiableCredentials.verification.templates.list() -> SyncPagingIterable<VerifiableCredentialTemplateResponse> +
client.verifiableCredentials.verification.templates.list() -> SyncPagingIterable&lt;VerifiableCredentialTemplateResponse&gt;
diff --git a/src/main/java/com/auth0/client/mgmt/AsyncEventStreamsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncEventStreamsClient.java index dfe356b8a..bf26909a0 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncEventStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncEventStreamsClient.java @@ -6,15 +6,16 @@ import com.auth0.client.mgmt.core.ClientOptions; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.core.Suppliers; +import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.eventstreams.AsyncDeliveriesClient; import com.auth0.client.mgmt.eventstreams.AsyncRedeliveriesClient; import com.auth0.client.mgmt.types.CreateEventStreamResponseContent; import com.auth0.client.mgmt.types.CreateEventStreamTestEventRequestContent; import com.auth0.client.mgmt.types.CreateEventStreamTestEventResponseContent; +import com.auth0.client.mgmt.types.EventStreamResponseContent; import com.auth0.client.mgmt.types.EventStreamsCreateRequest; import com.auth0.client.mgmt.types.GetEventStreamResponseContent; import com.auth0.client.mgmt.types.ListEventStreamsRequestParameters; -import com.auth0.client.mgmt.types.ListEventStreamsResponseContent; import com.auth0.client.mgmt.types.UpdateEventStreamRequestContent; import com.auth0.client.mgmt.types.UpdateEventStreamResponseContent; import java.util.concurrent.CompletableFuture; @@ -43,15 +44,16 @@ public AsyncRawEventStreamsClient withRawResponse() { return this.rawClient; } - public CompletableFuture list() { + public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } - public CompletableFuture list(ListEventStreamsRequestParameters request) { + public CompletableFuture> list( + ListEventStreamsRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); } - public CompletableFuture list( + public CompletableFuture> list( ListEventStreamsRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).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 new file mode 100644 index 000000000..4876e6440 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/AsyncGroupsClient.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.Suppliers; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.groups.AsyncMembersClient; +import com.auth0.client.mgmt.types.GetGroupResponseContent; +import com.auth0.client.mgmt.types.Group; +import com.auth0.client.mgmt.types.ListGroupsRequestParameters; +import java.util.concurrent.CompletableFuture; +import java.util.function.Supplier; + +public class AsyncGroupsClient { + protected final ClientOptions clientOptions; + + private final AsyncRawGroupsClient rawClient; + + protected final Supplier membersClient; + + public AsyncGroupsClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new AsyncRawGroupsClient(clientOptions); + this.membersClient = Suppliers.memoize(() -> new AsyncMembersClient(clientOptions)); + } + + /** + * Get responses with HTTP metadata like headers + */ + public AsyncRawGroupsClient withRawResponse() { + return this.rawClient; + } + + /** + * List all groups in your tenant. + */ + public CompletableFuture> list() { + return this.rawClient.list().thenApply(response -> response.body()); + } + + /** + * List all groups in your tenant. + */ + public CompletableFuture> list(ListGroupsRequestParameters request) { + return this.rawClient.list(request).thenApply(response -> response.body()); + } + + /** + * List all groups in your tenant. + */ + public CompletableFuture> list( + ListGroupsRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.list(request, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve a group by its ID. + */ + public CompletableFuture get(String id) { + return this.rawClient.get(id).thenApply(response -> response.body()); + } + + /** + * Retrieve a group by its ID. + */ + public CompletableFuture get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + + public AsyncMembersClient members() { + return this.membersClient.get(); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java b/src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java index 69d2802d6..eb0f4e9e9 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java @@ -44,6 +44,8 @@ public class AsyncManagementApi { protected final Supplier userGrantsClient; + protected final Supplier groupsClient; + protected final Supplier hooksClient; protected final Supplier jobsClient; @@ -117,6 +119,7 @@ public AsyncManagementApi(ClientOptions clientOptions) { this.flowsClient = Suppliers.memoize(() -> new AsyncFlowsClient(clientOptions)); this.formsClient = Suppliers.memoize(() -> new AsyncFormsClient(clientOptions)); this.userGrantsClient = Suppliers.memoize(() -> new AsyncUserGrantsClient(clientOptions)); + this.groupsClient = Suppliers.memoize(() -> new AsyncGroupsClient(clientOptions)); this.hooksClient = Suppliers.memoize(() -> new AsyncHooksClient(clientOptions)); this.jobsClient = Suppliers.memoize(() -> new AsyncJobsClient(clientOptions)); this.logStreamsClient = Suppliers.memoize(() -> new AsyncLogStreamsClient(clientOptions)); @@ -200,6 +203,10 @@ public AsyncUserGrantsClient userGrants() { return this.userGrantsClient.get(); } + public AsyncGroupsClient groups() { + return this.groupsClient.get(); + } + public AsyncHooksClient hooks() { return this.hooksClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawEventStreamsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawEventStreamsClient.java index 4834f1867..46f178827 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawEventStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawEventStreamsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -20,6 +21,7 @@ import com.auth0.client.mgmt.types.CreateEventStreamResponseContent; import com.auth0.client.mgmt.types.CreateEventStreamTestEventRequestContent; import com.auth0.client.mgmt.types.CreateEventStreamTestEventResponseContent; +import com.auth0.client.mgmt.types.EventStreamResponseContent; import com.auth0.client.mgmt.types.EventStreamsCreateRequest; import com.auth0.client.mgmt.types.GetEventStreamResponseContent; import com.auth0.client.mgmt.types.ListEventStreamsRequestParameters; @@ -28,7 +30,11 @@ import com.auth0.client.mgmt.types.UpdateEventStreamResponseContent; import com.fasterxml.jackson.core.JsonProcessingException; import java.io.IOException; +import java.util.Collections; +import java.util.List; +import java.util.Optional; import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; import okhttp3.Call; import okhttp3.Callback; import okhttp3.Headers; @@ -47,16 +53,16 @@ public AsyncRawEventStreamsClient(ClientOptions clientOptions) { this.clientOptions = clientOptions; } - public CompletableFuture> list() { + public CompletableFuture>> list() { return list(ListEventStreamsRequestParameters.builder().build()); } - public CompletableFuture> list( + public CompletableFuture>> list( ListEventStreamsRequestParameters request) { return list(request, null); } - public CompletableFuture> list( + public CompletableFuture>> list( ListEventStreamsRequestParameters request, RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() @@ -76,7 +82,7 @@ public CompletableFuture> future = + CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -84,9 +90,26 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO try (ResponseBody responseBody = response.body()) { String responseBodyString = responseBody != null ? responseBody.string() : "{}"; if (response.isSuccessful()) { + ListEventStreamsResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, ListEventStreamsResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListEventStreamsRequestParameters nextRequest = ListEventStreamsRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = + parsedResponse.getEventStreams().orElse(Collections.emptyList()); future.complete(new ManagementApiHttpResponse<>( - ObjectMappers.JSON_MAPPER.readValue( - responseBodyString, ListEventStreamsResponseContent.class), + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> { + try { + return list(nextRequest, requestOptions) + .get() + .body(); + } catch (InterruptedException | ExecutionException e) { + throw new RuntimeException(e); + } + }), response)); return; } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java new file mode 100644 index 000000000..03599bae7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java @@ -0,0 +1,261 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.ManagementApiException; +import com.auth0.client.mgmt.core.ManagementApiHttpResponse; +import com.auth0.client.mgmt.core.ManagementException; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.QueryStringMapper; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; +import com.auth0.client.mgmt.errors.TooManyRequestsError; +import com.auth0.client.mgmt.errors.UnauthorizedError; +import com.auth0.client.mgmt.types.GetGroupResponseContent; +import com.auth0.client.mgmt.types.Group; +import com.auth0.client.mgmt.types.ListGroupsPaginatedResponseContent; +import com.auth0.client.mgmt.types.ListGroupsRequestParameters; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.IOException; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; +import okhttp3.Call; +import okhttp3.Callback; +import okhttp3.Headers; +import okhttp3.HttpUrl; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.Response; +import okhttp3.ResponseBody; +import org.jetbrains.annotations.NotNull; + +public class AsyncRawGroupsClient { + protected final ClientOptions clientOptions; + + public AsyncRawGroupsClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * List all groups in your tenant. + */ + public CompletableFuture>> list() { + return list(ListGroupsRequestParameters.builder().build()); + } + + /** + * List all groups in your tenant. + */ + public CompletableFuture>> list( + ListGroupsRequestParameters request) { + return list(request, null); + } + + /** + * List all groups in your tenant. + */ + public CompletableFuture>> list( + ListGroupsRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("groups"); + if (!request.getConnectionId().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "connection_id", request.getConnectionId().orElse(null), false); + } + if (!request.getName().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "name", request.getName().orElse(null), false); + } + if (!request.getExternalId().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "external_id", request.getExternalId().orElse(null), false); + } + if (!request.getFields().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "fields", request.getFields().orElse(null), false); + } + if (!request.getIncludeFields().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); + } + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture>> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + ListGroupsPaginatedResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, ListGroupsPaginatedResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListGroupsRequestParameters nextRequest = ListGroupsRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getGroups(); + future.complete(new ManagementApiHttpResponse<>( + new SyncPagingIterable(startingAfter.isPresent(), result, parsedResponse, () -> { + try { + return list(nextRequest, requestOptions) + .get() + .body(); + } catch (InterruptedException | ExecutionException e) { + throw new RuntimeException(e); + } + }), + response)); + return; + } + try { + switch (response.code()) { + case 400: + future.completeExceptionally(new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } + + /** + * Retrieve a group by its ID. + */ + public CompletableFuture> get(String id) { + return get(id, null); + } + + /** + * Retrieve a group by its ID. + */ + public CompletableFuture> get( + String id, RequestOptions requestOptions) { + HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("groups") + .addPathSegment(id) + .build(); + Request okhttpRequest = new Request.Builder() + .url(httpUrl) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, GetGroupResponseContent.class), + response)); + return; + } + try { + switch (response.code()) { + case 400: + future.completeExceptionally(new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 404: + future.completeExceptionally(new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } +} diff --git a/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java b/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java index ca21d2976..0c30ca45f 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java @@ -23,6 +23,7 @@ import com.auth0.client.mgmt.users.AsyncConnectedAccountsClient; import com.auth0.client.mgmt.users.AsyncEnrollmentsClient; import com.auth0.client.mgmt.users.AsyncFederatedConnectionsTokensetsClient; +import com.auth0.client.mgmt.users.AsyncGroupsClient; import com.auth0.client.mgmt.users.AsyncIdentitiesClient; import com.auth0.client.mgmt.users.AsyncLogsClient; import com.auth0.client.mgmt.users.AsyncMultifactorClient; @@ -51,6 +52,8 @@ public class AsyncUsersClient { protected final Supplier federatedConnectionsTokensetsClient; + protected final Supplier groupsClient; + protected final Supplier identitiesClient; protected final Supplier logsClient; @@ -78,6 +81,7 @@ public AsyncUsersClient(ClientOptions clientOptions) { this.enrollmentsClient = Suppliers.memoize(() -> new AsyncEnrollmentsClient(clientOptions)); this.federatedConnectionsTokensetsClient = Suppliers.memoize(() -> new AsyncFederatedConnectionsTokensetsClient(clientOptions)); + this.groupsClient = Suppliers.memoize(() -> new AsyncGroupsClient(clientOptions)); this.identitiesClient = Suppliers.memoize(() -> new AsyncIdentitiesClient(clientOptions)); this.logsClient = Suppliers.memoize(() -> new AsyncLogsClient(clientOptions)); this.multifactorClient = Suppliers.memoize(() -> new AsyncMultifactorClient(clientOptions)); @@ -482,6 +486,10 @@ public AsyncFederatedConnectionsTokensetsClient federatedConnectionsTokensets() return this.federatedConnectionsTokensetsClient.get(); } + public AsyncGroupsClient groups() { + return this.groupsClient.get(); + } + public AsyncIdentitiesClient identities() { return this.identitiesClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/EventStreamsClient.java b/src/main/java/com/auth0/client/mgmt/EventStreamsClient.java index 04d78524d..a74aa944e 100644 --- a/src/main/java/com/auth0/client/mgmt/EventStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/EventStreamsClient.java @@ -6,15 +6,16 @@ import com.auth0.client.mgmt.core.ClientOptions; import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.core.Suppliers; +import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.eventstreams.DeliveriesClient; import com.auth0.client.mgmt.eventstreams.RedeliveriesClient; import com.auth0.client.mgmt.types.CreateEventStreamResponseContent; import com.auth0.client.mgmt.types.CreateEventStreamTestEventRequestContent; import com.auth0.client.mgmt.types.CreateEventStreamTestEventResponseContent; +import com.auth0.client.mgmt.types.EventStreamResponseContent; import com.auth0.client.mgmt.types.EventStreamsCreateRequest; import com.auth0.client.mgmt.types.GetEventStreamResponseContent; import com.auth0.client.mgmt.types.ListEventStreamsRequestParameters; -import com.auth0.client.mgmt.types.ListEventStreamsResponseContent; import com.auth0.client.mgmt.types.UpdateEventStreamRequestContent; import com.auth0.client.mgmt.types.UpdateEventStreamResponseContent; import java.util.function.Supplier; @@ -42,15 +43,15 @@ public RawEventStreamsClient withRawResponse() { return this.rawClient; } - public ListEventStreamsResponseContent list() { + public SyncPagingIterable list() { return this.rawClient.list().body(); } - public ListEventStreamsResponseContent list(ListEventStreamsRequestParameters request) { + public SyncPagingIterable list(ListEventStreamsRequestParameters request) { return this.rawClient.list(request).body(); } - public ListEventStreamsResponseContent list( + public SyncPagingIterable list( ListEventStreamsRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).body(); } diff --git a/src/main/java/com/auth0/client/mgmt/GroupsClient.java b/src/main/java/com/auth0/client/mgmt/GroupsClient.java new file mode 100644 index 000000000..b01f8ba90 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/GroupsClient.java @@ -0,0 +1,74 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.Suppliers; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.groups.MembersClient; +import com.auth0.client.mgmt.types.GetGroupResponseContent; +import com.auth0.client.mgmt.types.Group; +import com.auth0.client.mgmt.types.ListGroupsRequestParameters; +import java.util.function.Supplier; + +public class GroupsClient { + protected final ClientOptions clientOptions; + + private final RawGroupsClient rawClient; + + protected final Supplier membersClient; + + public GroupsClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new RawGroupsClient(clientOptions); + this.membersClient = Suppliers.memoize(() -> new MembersClient(clientOptions)); + } + + /** + * Get responses with HTTP metadata like headers + */ + public RawGroupsClient withRawResponse() { + return this.rawClient; + } + + /** + * List all groups in your tenant. + */ + public SyncPagingIterable list() { + return this.rawClient.list().body(); + } + + /** + * List all groups in your tenant. + */ + public SyncPagingIterable list(ListGroupsRequestParameters request) { + return this.rawClient.list(request).body(); + } + + /** + * List all groups in your tenant. + */ + public SyncPagingIterable list(ListGroupsRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.list(request, requestOptions).body(); + } + + /** + * Retrieve a group by its ID. + */ + public GetGroupResponseContent get(String id) { + return this.rawClient.get(id).body(); + } + + /** + * Retrieve a group by its ID. + */ + public GetGroupResponseContent get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + public MembersClient members() { + return this.membersClient.get(); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/ManagementApi.java b/src/main/java/com/auth0/client/mgmt/ManagementApi.java index 6ffb86aa4..f327c483e 100644 --- a/src/main/java/com/auth0/client/mgmt/ManagementApi.java +++ b/src/main/java/com/auth0/client/mgmt/ManagementApi.java @@ -44,6 +44,8 @@ public class ManagementApi { protected final Supplier userGrantsClient; + protected final Supplier groupsClient; + protected final Supplier hooksClient; protected final Supplier jobsClient; @@ -117,6 +119,7 @@ public ManagementApi(ClientOptions clientOptions) { this.flowsClient = Suppliers.memoize(() -> new FlowsClient(clientOptions)); this.formsClient = Suppliers.memoize(() -> new FormsClient(clientOptions)); this.userGrantsClient = Suppliers.memoize(() -> new UserGrantsClient(clientOptions)); + this.groupsClient = Suppliers.memoize(() -> new GroupsClient(clientOptions)); this.hooksClient = Suppliers.memoize(() -> new HooksClient(clientOptions)); this.jobsClient = Suppliers.memoize(() -> new JobsClient(clientOptions)); this.logStreamsClient = Suppliers.memoize(() -> new LogStreamsClient(clientOptions)); @@ -200,6 +203,10 @@ public UserGrantsClient userGrants() { return this.userGrantsClient.get(); } + public GroupsClient groups() { + return this.groupsClient.get(); + } + public HooksClient hooks() { return this.hooksClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java b/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java index 7a885c42c..eaa8ea2a3 100644 --- a/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java @@ -11,6 +11,7 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.QueryStringMapper; import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; @@ -20,6 +21,7 @@ import com.auth0.client.mgmt.types.CreateEventStreamResponseContent; import com.auth0.client.mgmt.types.CreateEventStreamTestEventRequestContent; import com.auth0.client.mgmt.types.CreateEventStreamTestEventResponseContent; +import com.auth0.client.mgmt.types.EventStreamResponseContent; import com.auth0.client.mgmt.types.EventStreamsCreateRequest; import com.auth0.client.mgmt.types.GetEventStreamResponseContent; import com.auth0.client.mgmt.types.ListEventStreamsRequestParameters; @@ -28,6 +30,9 @@ import com.auth0.client.mgmt.types.UpdateEventStreamResponseContent; import com.fasterxml.jackson.core.JsonProcessingException; import java.io.IOException; +import java.util.Collections; +import java.util.List; +import java.util.Optional; import okhttp3.Headers; import okhttp3.HttpUrl; import okhttp3.OkHttpClient; @@ -43,15 +48,16 @@ public RawEventStreamsClient(ClientOptions clientOptions) { this.clientOptions = clientOptions; } - public ManagementApiHttpResponse list() { + public ManagementApiHttpResponse> list() { return list(ListEventStreamsRequestParameters.builder().build()); } - public ManagementApiHttpResponse list(ListEventStreamsRequestParameters request) { + public ManagementApiHttpResponse> list( + ListEventStreamsRequestParameters request) { return list(request, null); } - public ManagementApiHttpResponse list( + public ManagementApiHttpResponse> list( ListEventStreamsRequestParameters request, RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() @@ -75,8 +81,20 @@ public ManagementApiHttpResponse list( ResponseBody responseBody = response.body(); String responseBodyString = responseBody != null ? responseBody.string() : "{}"; if (response.isSuccessful()) { + ListEventStreamsResponseContent parsedResponse = + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, ListEventStreamsResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListEventStreamsRequestParameters nextRequest = ListEventStreamsRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = + parsedResponse.getEventStreams().orElse(Collections.emptyList()); return new ManagementApiHttpResponse<>( - ObjectMappers.JSON_MAPPER.readValue(responseBodyString, ListEventStreamsResponseContent.class), + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> list( + nextRequest, requestOptions) + .body()), response); } try { diff --git a/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java new file mode 100644 index 000000000..a99ca73c5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java @@ -0,0 +1,204 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.ManagementApiException; +import com.auth0.client.mgmt.core.ManagementApiHttpResponse; +import com.auth0.client.mgmt.core.ManagementException; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.QueryStringMapper; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.NotFoundError; +import com.auth0.client.mgmt.errors.TooManyRequestsError; +import com.auth0.client.mgmt.errors.UnauthorizedError; +import com.auth0.client.mgmt.types.GetGroupResponseContent; +import com.auth0.client.mgmt.types.Group; +import com.auth0.client.mgmt.types.ListGroupsPaginatedResponseContent; +import com.auth0.client.mgmt.types.ListGroupsRequestParameters; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.IOException; +import java.util.List; +import java.util.Optional; +import okhttp3.Headers; +import okhttp3.HttpUrl; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.Response; +import okhttp3.ResponseBody; + +public class RawGroupsClient { + protected final ClientOptions clientOptions; + + public RawGroupsClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * List all groups in your tenant. + */ + public ManagementApiHttpResponse> list() { + return list(ListGroupsRequestParameters.builder().build()); + } + + /** + * List all groups in your tenant. + */ + public ManagementApiHttpResponse> list(ListGroupsRequestParameters request) { + return list(request, null); + } + + /** + * List all groups in your tenant. + */ + public ManagementApiHttpResponse> list( + ListGroupsRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("groups"); + if (!request.getConnectionId().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "connection_id", request.getConnectionId().orElse(null), false); + } + if (!request.getName().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "name", request.getName().orElse(null), false); + } + if (!request.getExternalId().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "external_id", request.getExternalId().orElse(null), false); + } + if (!request.getFields().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "fields", request.getFields().orElse(null), false); + } + if (!request.getIncludeFields().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); + } + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + ListGroupsPaginatedResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, ListGroupsPaginatedResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListGroupsRequestParameters nextRequest = ListGroupsRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getGroups(); + return new ManagementApiHttpResponse<>( + new SyncPagingIterable(startingAfter.isPresent(), result, parsedResponse, () -> list( + nextRequest, requestOptions) + .body()), + response); + } + try { + switch (response.code()) { + case 400: + throw new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } + + /** + * Retrieve a group by its ID. + */ + public ManagementApiHttpResponse get(String id) { + return get(id, null); + } + + /** + * Retrieve a group by its ID. + */ + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("groups") + .addPathSegment(id) + .build(); + Request okhttpRequest = new Request.Builder() + .url(httpUrl) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, GetGroupResponseContent.class), + response); + } + try { + switch (response.code()) { + case 400: + throw new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 404: + throw new NotFoundError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/UsersClient.java b/src/main/java/com/auth0/client/mgmt/UsersClient.java index f8151f803..cac371619 100644 --- a/src/main/java/com/auth0/client/mgmt/UsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/UsersClient.java @@ -23,6 +23,7 @@ import com.auth0.client.mgmt.users.ConnectedAccountsClient; import com.auth0.client.mgmt.users.EnrollmentsClient; import com.auth0.client.mgmt.users.FederatedConnectionsTokensetsClient; +import com.auth0.client.mgmt.users.GroupsClient; import com.auth0.client.mgmt.users.IdentitiesClient; import com.auth0.client.mgmt.users.LogsClient; import com.auth0.client.mgmt.users.MultifactorClient; @@ -50,6 +51,8 @@ public class UsersClient { protected final Supplier federatedConnectionsTokensetsClient; + protected final Supplier groupsClient; + protected final Supplier identitiesClient; protected final Supplier logsClient; @@ -77,6 +80,7 @@ public UsersClient(ClientOptions clientOptions) { this.enrollmentsClient = Suppliers.memoize(() -> new EnrollmentsClient(clientOptions)); this.federatedConnectionsTokensetsClient = Suppliers.memoize(() -> new FederatedConnectionsTokensetsClient(clientOptions)); + this.groupsClient = Suppliers.memoize(() -> new GroupsClient(clientOptions)); this.identitiesClient = Suppliers.memoize(() -> new IdentitiesClient(clientOptions)); this.logsClient = Suppliers.memoize(() -> new LogsClient(clientOptions)); this.multifactorClient = Suppliers.memoize(() -> new MultifactorClient(clientOptions)); @@ -477,6 +481,10 @@ public FederatedConnectionsTokensetsClient federatedConnectionsTokensets() { return this.federatedConnectionsTokensetsClient.get(); } + public GroupsClient groups() { + return this.groupsClient.get(); + } + public IdentitiesClient identities() { return this.identitiesClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/groups/AsyncMembersClient.java b/src/main/java/com/auth0/client/mgmt/groups/AsyncMembersClient.java new file mode 100644 index 000000000..ff414e688 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/groups/AsyncMembersClient.java @@ -0,0 +1,51 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.groups; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.groups.types.GetGroupMembersRequestParameters; +import com.auth0.client.mgmt.types.GroupMember; +import java.util.concurrent.CompletableFuture; + +public class AsyncMembersClient { + protected final ClientOptions clientOptions; + + private final AsyncRawMembersClient rawClient; + + public AsyncMembersClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new AsyncRawMembersClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public AsyncRawMembersClient withRawResponse() { + return this.rawClient; + } + + /** + * List all users that are a member of this group. + */ + 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, GetGroupMembersRequestParameters request) { + return this.rawClient.get(id, request).thenApply(response -> response.body()); + } + + /** + * List all users that are a member of this group. + */ + public CompletableFuture> get( + String id, GetGroupMembersRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.get(id, request, requestOptions).thenApply(response -> response.body()); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java b/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java new file mode 100644 index 000000000..d66c1afaa --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java @@ -0,0 +1,164 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.groups; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.ManagementApiException; +import com.auth0.client.mgmt.core.ManagementApiHttpResponse; +import com.auth0.client.mgmt.core.ManagementException; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.QueryStringMapper; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.TooManyRequestsError; +import com.auth0.client.mgmt.errors.UnauthorizedError; +import com.auth0.client.mgmt.groups.types.GetGroupMembersRequestParameters; +import com.auth0.client.mgmt.types.GetGroupMembersResponseContent; +import com.auth0.client.mgmt.types.GroupMember; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.IOException; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; +import okhttp3.Call; +import okhttp3.Callback; +import okhttp3.Headers; +import okhttp3.HttpUrl; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.Response; +import okhttp3.ResponseBody; +import org.jetbrains.annotations.NotNull; + +public class AsyncRawMembersClient { + protected final ClientOptions clientOptions; + + public AsyncRawMembersClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * List all users that are a member of this group. + */ + public CompletableFuture>> get(String id) { + return get(id, GetGroupMembersRequestParameters.builder().build()); + } + + /** + * List all users that are a member of this group. + */ + public CompletableFuture>> get( + String id, GetGroupMembersRequestParameters request) { + return get(id, request, null); + } + + /** + * List all users that are a member of this group. + */ + public CompletableFuture>> get( + String id, GetGroupMembersRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("groups") + .addPathSegment(id) + .addPathSegments("members"); + if (!request.getFields().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "fields", request.getFields().orElse(null), false); + } + if (!request.getIncludeFields().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); + } + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture>> future = + new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + GetGroupMembersResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, GetGroupMembersResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + GetGroupMembersRequestParameters nextRequest = GetGroupMembersRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getMembers(); + future.complete(new ManagementApiHttpResponse<>( + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> { + try { + return get(id, nextRequest, requestOptions) + .get() + .body(); + } catch (InterruptedException | ExecutionException e) { + throw new RuntimeException(e); + } + }), + response)); + return; + } + try { + switch (response.code()) { + case 400: + future.completeExceptionally(new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } +} diff --git a/src/main/java/com/auth0/client/mgmt/groups/MembersClient.java b/src/main/java/com/auth0/client/mgmt/groups/MembersClient.java new file mode 100644 index 000000000..9e3e321f5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/groups/MembersClient.java @@ -0,0 +1,50 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.groups; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.groups.types.GetGroupMembersRequestParameters; +import com.auth0.client.mgmt.types.GroupMember; + +public class MembersClient { + protected final ClientOptions clientOptions; + + private final RawMembersClient rawClient; + + public MembersClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new RawMembersClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public RawMembersClient withRawResponse() { + return this.rawClient; + } + + /** + * List all users that are a member of this group. + */ + 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, GetGroupMembersRequestParameters request) { + return this.rawClient.get(id, request).body(); + } + + /** + * List all users that are a member of this group. + */ + public SyncPagingIterable get( + String id, GetGroupMembersRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.get(id, request, requestOptions).body(); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java b/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java new file mode 100644 index 000000000..2719590c7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java @@ -0,0 +1,131 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.groups; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.ManagementApiException; +import com.auth0.client.mgmt.core.ManagementApiHttpResponse; +import com.auth0.client.mgmt.core.ManagementException; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.QueryStringMapper; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.TooManyRequestsError; +import com.auth0.client.mgmt.errors.UnauthorizedError; +import com.auth0.client.mgmt.groups.types.GetGroupMembersRequestParameters; +import com.auth0.client.mgmt.types.GetGroupMembersResponseContent; +import com.auth0.client.mgmt.types.GroupMember; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.IOException; +import java.util.List; +import java.util.Optional; +import okhttp3.Headers; +import okhttp3.HttpUrl; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.Response; +import okhttp3.ResponseBody; + +public class RawMembersClient { + protected final ClientOptions clientOptions; + + public RawMembersClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * List all users that are a member of this group. + */ + 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, GetGroupMembersRequestParameters request) { + return get(id, request, null); + } + + /** + * List all users that are a member of this group. + */ + public ManagementApiHttpResponse> get( + String id, GetGroupMembersRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("groups") + .addPathSegment(id) + .addPathSegments("members"); + if (!request.getFields().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "fields", request.getFields().orElse(null), false); + } + if (!request.getIncludeFields().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); + } + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + GetGroupMembersResponseContent parsedResponse = + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, GetGroupMembersResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + GetGroupMembersRequestParameters nextRequest = GetGroupMembersRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getMembers(); + return new ManagementApiHttpResponse<>( + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> get( + id, nextRequest, requestOptions) + .body()), + response); + } + try { + switch (response.code()) { + case 400: + throw new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java new file mode 100644 index 000000000..cee282e0b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java @@ -0,0 +1,307 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.groups.types; + +import com.auth0.client.mgmt.core.NullableNonemptyFilter; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.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; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = GetGroupMembersRequestParameters.Builder.class) +public final class GetGroupMembersRequestParameters { + private final OptionalNullable fields; + + private final OptionalNullable includeFields; + + private final OptionalNullable from; + + private final OptionalNullable take; + + private final Map additionalProperties; + + private GetGroupMembersRequestParameters( + OptionalNullable fields, + OptionalNullable includeFields, + OptionalNullable from, + OptionalNullable take, + Map additionalProperties) { + this.fields = fields; + this.includeFields = includeFields; + this.from = from; + this.take = take; + this.additionalProperties = additionalProperties; + } + + /** + * @return A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + public OptionalNullable getFields() { + if (fields == null) { + return OptionalNullable.absent(); + } + return fields; + } + + /** + * @return Whether specified fields are to be included (true) or excluded (false). + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + public OptionalNullable getIncludeFields() { + if (includeFields == null) { + return OptionalNullable.absent(); + } + return includeFields; + } + + /** + * @return Optional Id from which to start selection. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + public OptionalNullable getFrom() { + if (from == null) { + return OptionalNullable.absent(); + } + return from; + } + + /** + * @return Number of results per page. Defaults to 50. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + public OptionalNullable getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof GetGroupMembersRequestParameters && equalTo((GetGroupMembersRequestParameters) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(GetGroupMembersRequestParameters other) { + return fields.equals(other.fields) + && includeFields.equals(other.includeFields) + && from.equals(other.from) + && take.equals(other.take); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.fields, this.includeFields, this.from, this.take); + } + + @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 OptionalNullable fields = OptionalNullable.absent(); + + private OptionalNullable includeFields = OptionalNullable.absent(); + + private OptionalNullable from = OptionalNullable.absent(); + + private OptionalNullable take = OptionalNullable.absent(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(GetGroupMembersRequestParameters other) { + fields(other.getFields()); + includeFields(other.getIncludeFields()); + from(other.getFrom()); + take(other.getTake()); + return this; + } + + /** + *

A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields

+ */ + @JsonSetter(value = "fields", nulls = Nulls.SKIP) + public Builder fields(@Nullable OptionalNullable fields) { + this.fields = fields; + return this; + } + + public Builder fields(String fields) { + this.fields = OptionalNullable.of(fields); + return this; + } + + public Builder fields(Optional fields) { + if (fields.isPresent()) { + this.fields = OptionalNullable.of(fields.get()); + } else { + this.fields = OptionalNullable.absent(); + } + return this; + } + + public Builder fields(com.auth0.client.mgmt.core.Nullable fields) { + if (fields.isNull()) { + this.fields = OptionalNullable.ofNull(); + } else if (fields.isEmpty()) { + this.fields = OptionalNullable.absent(); + } else { + this.fields = OptionalNullable.of(fields.get()); + } + return this; + } + + /** + *

Whether specified fields are to be included (true) or excluded (false).

+ */ + @JsonSetter(value = "include_fields", nulls = Nulls.SKIP) + public Builder includeFields(@Nullable OptionalNullable includeFields) { + this.includeFields = includeFields; + return this; + } + + public Builder includeFields(Boolean includeFields) { + this.includeFields = OptionalNullable.of(includeFields); + return this; + } + + public Builder includeFields(Optional includeFields) { + if (includeFields.isPresent()) { + this.includeFields = OptionalNullable.of(includeFields.get()); + } else { + this.includeFields = OptionalNullable.absent(); + } + return this; + } + + public Builder includeFields(com.auth0.client.mgmt.core.Nullable includeFields) { + if (includeFields.isNull()) { + this.includeFields = OptionalNullable.ofNull(); + } else if (includeFields.isEmpty()) { + this.includeFields = OptionalNullable.absent(); + } else { + this.includeFields = OptionalNullable.of(includeFields.get()); + } + return this; + } + + /** + *

Optional Id from which to start selection.

+ */ + @JsonSetter(value = "from", nulls = Nulls.SKIP) + public Builder from(@Nullable OptionalNullable from) { + this.from = from; + return this; + } + + public Builder from(String from) { + this.from = OptionalNullable.of(from); + return this; + } + + public Builder from(Optional from) { + if (from.isPresent()) { + this.from = OptionalNullable.of(from.get()); + } else { + this.from = OptionalNullable.absent(); + } + return this; + } + + public Builder from(com.auth0.client.mgmt.core.Nullable from) { + if (from.isNull()) { + this.from = OptionalNullable.ofNull(); + } else if (from.isEmpty()) { + this.from = OptionalNullable.absent(); + } else { + this.from = OptionalNullable.of(from.get()); + } + return this; + } + + /** + *

Number of results per page. Defaults to 50.

+ */ + @JsonSetter(value = "take", nulls = Nulls.SKIP) + public Builder take(OptionalNullable take) { + this.take = take; + return this; + } + + public Builder take(Integer take) { + this.take = OptionalNullable.of(take); + return this; + } + + public Builder take(Optional take) { + if (take.isPresent()) { + this.take = OptionalNullable.of(take.get()); + } else { + this.take = OptionalNullable.absent(); + } + return this; + } + + public Builder take(com.auth0.client.mgmt.core.Nullable take) { + if (take.isNull()) { + this.take = OptionalNullable.ofNull(); + } else if (take.isEmpty()) { + this.take = OptionalNullable.absent(); + } else { + this.take = OptionalNullable.of(take.get()); + } + return this; + } + + public GetGroupMembersRequestParameters build() { + return new GetGroupMembersRequestParameters(fields, includeFields, from, take, additionalProperties); + } + } +} 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 b7fe4984f..d2e266649 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawRenderingClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawRenderingClient.java @@ -21,10 +21,10 @@ import com.auth0.client.mgmt.prompts.types.BulkUpdateAculRequestContent; import com.auth0.client.mgmt.prompts.types.ListAculsRequestParameters; import com.auth0.client.mgmt.prompts.types.UpdateAculRequestContent; -import com.auth0.client.mgmt.types.AculResponseContent; import com.auth0.client.mgmt.types.BulkUpdateAculResponseContent; import com.auth0.client.mgmt.types.GetAculResponseContent; import com.auth0.client.mgmt.types.ListAculsOffsetPaginatedResponseContent; +import com.auth0.client.mgmt.types.ListAculsResponseContentItem; import com.auth0.client.mgmt.types.PromptGroupNameEnum; import com.auth0.client.mgmt.types.ScreenGroupNameEnum; import com.auth0.client.mgmt.types.UpdateAculResponseContent; @@ -55,14 +55,14 @@ public AsyncRawRenderingClient(ClientOptions clientOptions) { /** * Get render setting configurations for all screens. */ - public CompletableFuture>> list() { + public CompletableFuture>> list() { return list(ListAculsRequestParameters.builder().build()); } /** * Get render setting configurations for all screens. */ - public CompletableFuture>> list( + public CompletableFuture>> list( ListAculsRequestParameters request) { return list(request, null); } @@ -70,7 +70,7 @@ public CompletableFuture>> list( + public CompletableFuture>> list( ListAculsRequestParameters request, RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() @@ -110,7 +110,7 @@ public CompletableFuture>> future = + CompletableFuture>> future = new CompletableFuture<>(); client.newCall(okhttpRequest).enqueue(new Callback() { @Override @@ -127,18 +127,19 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO .from(request) .page(newPageNumber) .build(); - List result = + List result = parsedResponse.getConfigs().orElse(Collections.emptyList()); future.complete(new ManagementApiHttpResponse<>( - new SyncPagingIterable(true, result, parsedResponse, () -> { - try { - return list(nextRequest, requestOptions) - .get() - .body(); - } catch (InterruptedException | ExecutionException e) { - throw new RuntimeException(e); - } - }), + new SyncPagingIterable( + true, result, parsedResponse, () -> { + try { + return list(nextRequest, requestOptions) + .get() + .body(); + } catch (InterruptedException | ExecutionException e) { + throw new RuntimeException(e); + } + }), response)); return; } 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 f45ce6126..6079315d7 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRenderingClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRenderingClient.java @@ -9,9 +9,9 @@ import com.auth0.client.mgmt.prompts.types.BulkUpdateAculRequestContent; import com.auth0.client.mgmt.prompts.types.ListAculsRequestParameters; import com.auth0.client.mgmt.prompts.types.UpdateAculRequestContent; -import com.auth0.client.mgmt.types.AculResponseContent; import com.auth0.client.mgmt.types.BulkUpdateAculResponseContent; import com.auth0.client.mgmt.types.GetAculResponseContent; +import com.auth0.client.mgmt.types.ListAculsResponseContentItem; import com.auth0.client.mgmt.types.PromptGroupNameEnum; import com.auth0.client.mgmt.types.ScreenGroupNameEnum; import com.auth0.client.mgmt.types.UpdateAculResponseContent; @@ -37,21 +37,22 @@ public AsyncRawRenderingClient withRawResponse() { /** * Get render setting configurations for all screens. */ - public CompletableFuture> list() { + public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } /** * Get render setting configurations for all screens. */ - public CompletableFuture> list(ListAculsRequestParameters request) { + public CompletableFuture> list( + ListAculsRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); } /** * Get render setting configurations for all screens. */ - public CompletableFuture> list( + public CompletableFuture> list( ListAculsRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).thenApply(response -> response.body()); } 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 61017d727..c4b922f6e 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/RawRenderingClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/RawRenderingClient.java @@ -21,10 +21,10 @@ import com.auth0.client.mgmt.prompts.types.BulkUpdateAculRequestContent; import com.auth0.client.mgmt.prompts.types.ListAculsRequestParameters; import com.auth0.client.mgmt.prompts.types.UpdateAculRequestContent; -import com.auth0.client.mgmt.types.AculResponseContent; import com.auth0.client.mgmt.types.BulkUpdateAculResponseContent; import com.auth0.client.mgmt.types.GetAculResponseContent; import com.auth0.client.mgmt.types.ListAculsOffsetPaginatedResponseContent; +import com.auth0.client.mgmt.types.ListAculsResponseContentItem; import com.auth0.client.mgmt.types.PromptGroupNameEnum; import com.auth0.client.mgmt.types.ScreenGroupNameEnum; import com.auth0.client.mgmt.types.UpdateAculResponseContent; @@ -50,21 +50,22 @@ public RawRenderingClient(ClientOptions clientOptions) { /** * Get render setting configurations for all screens. */ - public ManagementApiHttpResponse> list() { + public ManagementApiHttpResponse> list() { return list(ListAculsRequestParameters.builder().build()); } /** * Get render setting configurations for all screens. */ - public ManagementApiHttpResponse> list(ListAculsRequestParameters request) { + public ManagementApiHttpResponse> list( + ListAculsRequestParameters request) { return list(request, null); } /** * Get render setting configurations for all screens. */ - public ManagementApiHttpResponse> list( + public ManagementApiHttpResponse> list( ListAculsRequestParameters request, RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() @@ -116,9 +117,10 @@ public ManagementApiHttpResponse> list( .from(request) .page(newPageNumber) .build(); - List result = parsedResponse.getConfigs().orElse(Collections.emptyList()); + List result = + parsedResponse.getConfigs().orElse(Collections.emptyList()); return new ManagementApiHttpResponse<>( - new SyncPagingIterable( + new SyncPagingIterable( true, result, parsedResponse, () -> list(nextRequest, requestOptions) .body()), response); 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 76e1b93d2..0833006c0 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/RenderingClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/RenderingClient.java @@ -9,9 +9,9 @@ import com.auth0.client.mgmt.prompts.types.BulkUpdateAculRequestContent; import com.auth0.client.mgmt.prompts.types.ListAculsRequestParameters; import com.auth0.client.mgmt.prompts.types.UpdateAculRequestContent; -import com.auth0.client.mgmt.types.AculResponseContent; import com.auth0.client.mgmt.types.BulkUpdateAculResponseContent; import com.auth0.client.mgmt.types.GetAculResponseContent; +import com.auth0.client.mgmt.types.ListAculsResponseContentItem; import com.auth0.client.mgmt.types.PromptGroupNameEnum; import com.auth0.client.mgmt.types.ScreenGroupNameEnum; import com.auth0.client.mgmt.types.UpdateAculResponseContent; @@ -36,21 +36,21 @@ public RawRenderingClient withRawResponse() { /** * Get render setting configurations for all screens. */ - public SyncPagingIterable list() { + public SyncPagingIterable list() { return this.rawClient.list().body(); } /** * Get render setting configurations for all screens. */ - public SyncPagingIterable list(ListAculsRequestParameters request) { + public SyncPagingIterable list(ListAculsRequestParameters request) { return this.rawClient.list(request).body(); } /** * Get render setting configurations for all screens. */ - public SyncPagingIterable list( + public SyncPagingIterable list( ListAculsRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).body(); } 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 682f01c92..76a012d07 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java @@ -84,6 +84,9 @@ public Optional> getContextConfiguration() { return contextConfiguration; } + /** + * @return Override Universal Login default head tags + */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("default_head_tags_disabled") public OptionalNullable getDefaultHeadTagsDisabled() { @@ -93,6 +96,9 @@ public OptionalNullable getDefaultHeadTagsDisabled() { return defaultHeadTagsDisabled; } + /** + * @return Use page template with ACUL + */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("use_page_template") public OptionalNullable getUsePageTemplate() { @@ -102,6 +108,9 @@ public OptionalNullable getUsePageTemplate() { return usePageTemplate; } + /** + * @return An array of head tags + */ @JsonProperty("head_tags") public Optional> getHeadTags() { return headTags; @@ -199,6 +208,9 @@ public interface _FinalStage { _FinalStage contextConfiguration(List contextConfiguration); + /** + *

Override Universal Login default head tags

+ */ _FinalStage defaultHeadTagsDisabled(@Nullable OptionalNullable defaultHeadTagsDisabled); _FinalStage defaultHeadTagsDisabled(Boolean defaultHeadTagsDisabled); @@ -207,6 +219,9 @@ public interface _FinalStage { _FinalStage defaultHeadTagsDisabled(com.auth0.client.mgmt.core.Nullable defaultHeadTagsDisabled); + /** + *

Use page template with ACUL

+ */ _FinalStage usePageTemplate(@Nullable OptionalNullable usePageTemplate); _FinalStage usePageTemplate(Boolean usePageTemplate); @@ -215,6 +230,9 @@ public interface _FinalStage { _FinalStage usePageTemplate(com.auth0.client.mgmt.core.Nullable usePageTemplate); + /** + *

An array of head tags

+ */ _FinalStage headTags(Optional> headTags); _FinalStage headTags(List headTags); @@ -313,12 +331,19 @@ public _FinalStage filters(@Nullable OptionalNullable filters) { return this; } + /** + *

An array of head tags

+ * @return Reference to {@code this} so that method calls can be chained together. + */ @java.lang.Override public _FinalStage headTags(List headTags) { this.headTags = Optional.ofNullable(headTags); return this; } + /** + *

An array of head tags

+ */ @java.lang.Override @JsonSetter(value = "head_tags", nulls = Nulls.SKIP) public _FinalStage headTags(Optional> headTags) { @@ -326,6 +351,10 @@ public _FinalStage headTags(Optional> headTags) { return this; } + /** + *

Use page template with ACUL

+ * @return Reference to {@code this} so that method calls can be chained together. + */ @java.lang.Override public _FinalStage usePageTemplate(com.auth0.client.mgmt.core.Nullable usePageTemplate) { if (usePageTemplate.isNull()) { @@ -338,6 +367,10 @@ public _FinalStage usePageTemplate(com.auth0.client.mgmt.core.Nullable return this; } + /** + *

Use page template with ACUL

+ * @return Reference to {@code this} so that method calls can be chained together. + */ @java.lang.Override public _FinalStage usePageTemplate(Optional usePageTemplate) { if (usePageTemplate.isPresent()) { @@ -348,12 +381,19 @@ public _FinalStage usePageTemplate(Optional usePageTemplate) { return this; } + /** + *

Use page template with ACUL

+ * @return Reference to {@code this} so that method calls can be chained together. + */ @java.lang.Override public _FinalStage usePageTemplate(Boolean usePageTemplate) { this.usePageTemplate = OptionalNullable.of(usePageTemplate); return this; } + /** + *

Use page template with ACUL

+ */ @java.lang.Override @JsonSetter(value = "use_page_template", nulls = Nulls.SKIP) public _FinalStage usePageTemplate(@Nullable OptionalNullable usePageTemplate) { @@ -361,6 +401,10 @@ public _FinalStage usePageTemplate(@Nullable OptionalNullable usePageTe return this; } + /** + *

Override Universal Login default head tags

+ * @return Reference to {@code this} so that method calls can be chained together. + */ @java.lang.Override public _FinalStage defaultHeadTagsDisabled( com.auth0.client.mgmt.core.Nullable defaultHeadTagsDisabled) { @@ -374,6 +418,10 @@ public _FinalStage defaultHeadTagsDisabled( return this; } + /** + *

Override Universal Login default head tags

+ * @return Reference to {@code this} so that method calls can be chained together. + */ @java.lang.Override public _FinalStage defaultHeadTagsDisabled(Optional defaultHeadTagsDisabled) { if (defaultHeadTagsDisabled.isPresent()) { @@ -384,12 +432,19 @@ public _FinalStage defaultHeadTagsDisabled(Optional defaultHeadTagsDisa return this; } + /** + *

Override Universal Login default head tags

+ * @return Reference to {@code this} so that method calls can be chained together. + */ @java.lang.Override public _FinalStage defaultHeadTagsDisabled(Boolean defaultHeadTagsDisabled) { this.defaultHeadTagsDisabled = OptionalNullable.of(defaultHeadTagsDisabled); return this; } + /** + *

Override Universal Login default head tags

+ */ @java.lang.Override @JsonSetter(value = "default_head_tags_disabled", nulls = Nulls.SKIP) public _FinalStage defaultHeadTagsDisabled(@Nullable OptionalNullable defaultHeadTagsDisabled) { diff --git a/src/main/java/com/auth0/client/mgmt/types/CertificateSubjectDnCredential.java b/src/main/java/com/auth0/client/mgmt/types/CertificateSubjectDnCredential.java new file mode 100644 index 000000000..5de6f4647 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CertificateSubjectDnCredential.java @@ -0,0 +1,235 @@ +/** + * 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; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = CertificateSubjectDnCredential.Builder.class) +public final class CertificateSubjectDnCredential { + private final String credentialType; + + private final Optional name; + + private final Optional subjectDn; + + private final Optional pem; + + private final Map additionalProperties; + + private CertificateSubjectDnCredential( + String credentialType, + Optional name, + Optional subjectDn, + Optional pem, + Map additionalProperties) { + this.credentialType = credentialType; + this.name = name; + this.subjectDn = subjectDn; + this.pem = pem; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("credential_type") + public String getCredentialType() { + return credentialType; + } + + /** + * @return Friendly name for a credential. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Subject Distinguished Name. Mutually exclusive with pem property. Applies to cert_subject_dn credential type. + */ + @JsonProperty("subject_dn") + public Optional getSubjectDn() { + return subjectDn; + } + + /** + * @return PEM-formatted X509 certificate. Must be JSON escaped. Mutually exclusive with subject_dn property. + */ + @JsonProperty("pem") + public Optional getPem() { + return pem; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CertificateSubjectDnCredential && equalTo((CertificateSubjectDnCredential) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CertificateSubjectDnCredential other) { + return credentialType.equals(other.credentialType) + && name.equals(other.name) + && subjectDn.equals(other.subjectDn) + && pem.equals(other.pem); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.credentialType, this.name, this.subjectDn, this.pem); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static CredentialTypeStage builder() { + return new Builder(); + } + + public interface CredentialTypeStage { + _FinalStage credentialType(@NotNull String credentialType); + + Builder from(CertificateSubjectDnCredential other); + } + + public interface _FinalStage { + CertificateSubjectDnCredential build(); + + /** + *

Friendly name for a credential.

+ */ + _FinalStage name(Optional name); + + _FinalStage name(String name); + + /** + *

Subject Distinguished Name. Mutually exclusive with pem property. Applies to cert_subject_dn credential type.

+ */ + _FinalStage subjectDn(Optional subjectDn); + + _FinalStage subjectDn(String subjectDn); + + /** + *

PEM-formatted X509 certificate. Must be JSON escaped. Mutually exclusive with subject_dn property.

+ */ + _FinalStage pem(Optional pem); + + _FinalStage pem(String pem); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements CredentialTypeStage, _FinalStage { + private String credentialType; + + private Optional pem = Optional.empty(); + + private Optional subjectDn = Optional.empty(); + + private Optional name = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(CertificateSubjectDnCredential other) { + credentialType(other.getCredentialType()); + name(other.getName()); + subjectDn(other.getSubjectDn()); + pem(other.getPem()); + return this; + } + + @java.lang.Override + @JsonSetter("credential_type") + public _FinalStage credentialType(@NotNull String credentialType) { + this.credentialType = Objects.requireNonNull(credentialType, "credentialType must not be null"); + return this; + } + + /** + *

PEM-formatted X509 certificate. Must be JSON escaped. Mutually exclusive with subject_dn property.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage pem(String pem) { + this.pem = Optional.ofNullable(pem); + return this; + } + + /** + *

PEM-formatted X509 certificate. Must be JSON escaped. Mutually exclusive with subject_dn property.

+ */ + @java.lang.Override + @JsonSetter(value = "pem", nulls = Nulls.SKIP) + public _FinalStage pem(Optional pem) { + this.pem = pem; + return this; + } + + /** + *

Subject Distinguished Name. Mutually exclusive with pem property. Applies to cert_subject_dn credential type.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage subjectDn(String subjectDn) { + this.subjectDn = Optional.ofNullable(subjectDn); + return this; + } + + /** + *

Subject Distinguished Name. Mutually exclusive with pem property. Applies to cert_subject_dn credential type.

+ */ + @java.lang.Override + @JsonSetter(value = "subject_dn", nulls = Nulls.SKIP) + public _FinalStage subjectDn(Optional subjectDn) { + this.subjectDn = subjectDn; + return this; + } + + /** + *

Friendly name for a credential.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage name(String name) { + this.name = Optional.ofNullable(name); + return this; + } + + /** + *

Friendly name for a credential.

+ */ + @java.lang.Override + @JsonSetter(value = "name", nulls = Nulls.SKIP) + public _FinalStage name(Optional name) { + this.name = name; + return this; + } + + @java.lang.Override + public CertificateSubjectDnCredential build() { + return new CertificateSubjectDnCredential(credentialType, name, subjectDn, pem, additionalProperties); + } + } +} 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 05ccd5fb2..f7e74c5af 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethod.java @@ -20,7 +20,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ClientAuthenticationMethod.Builder.class) public final class ClientAuthenticationMethod { - private final Optional privateKeyJwt; + private final Optional privateKeyJwt; private final Optional tlsClientAuth; @@ -29,7 +29,7 @@ public final class ClientAuthenticationMethod { private final Map additionalProperties; private ClientAuthenticationMethod( - Optional privateKeyJwt, + Optional privateKeyJwt, Optional tlsClientAuth, Optional selfSignedTlsClientAuth, Map additionalProperties) { @@ -40,7 +40,7 @@ private ClientAuthenticationMethod( } @JsonProperty("private_key_jwt") - public Optional getPrivateKeyJwt() { + public Optional getPrivateKeyJwt() { return privateKeyJwt; } @@ -87,7 +87,7 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { - private Optional privateKeyJwt = Optional.empty(); + private Optional privateKeyJwt = Optional.empty(); private Optional tlsClientAuth = Optional.empty(); @@ -106,12 +106,12 @@ public Builder from(ClientAuthenticationMethod other) { } @JsonSetter(value = "private_key_jwt", nulls = Nulls.SKIP) - public Builder privateKeyJwt(Optional privateKeyJwt) { + public Builder privateKeyJwt(Optional privateKeyJwt) { this.privateKeyJwt = privateKeyJwt; return this; } - public Builder privateKeyJwt(PrivateKeyJwt privateKeyJwt) { + public Builder privateKeyJwt(ClientAuthenticationMethodPrivateKeyJwt privateKeyJwt) { this.privateKeyJwt = Optional.ofNullable(privateKeyJwt); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/PrivateKeyJwt.java b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodPrivateKeyJwt.java similarity index 78% rename from src/main/java/com/auth0/client/mgmt/types/PrivateKeyJwt.java rename to src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodPrivateKeyJwt.java index 6e3aef742..2b6facd10 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PrivateKeyJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodPrivateKeyJwt.java @@ -19,13 +19,14 @@ import java.util.Objects; @JsonInclude(JsonInclude.Include.NON_ABSENT) -@JsonDeserialize(builder = PrivateKeyJwt.Builder.class) -public final class PrivateKeyJwt { +@JsonDeserialize(builder = ClientAuthenticationMethodPrivateKeyJwt.Builder.class) +public final class ClientAuthenticationMethodPrivateKeyJwt { private final List credentials; private final Map additionalProperties; - private PrivateKeyJwt(List credentials, Map additionalProperties) { + private ClientAuthenticationMethodPrivateKeyJwt( + List credentials, Map additionalProperties) { this.credentials = credentials; this.additionalProperties = additionalProperties; } @@ -38,7 +39,8 @@ public List getCredentials() { @java.lang.Override public boolean equals(Object other) { if (this == other) return true; - return other instanceof PrivateKeyJwt && equalTo((PrivateKeyJwt) other); + return other instanceof ClientAuthenticationMethodPrivateKeyJwt + && equalTo((ClientAuthenticationMethodPrivateKeyJwt) other); } @JsonAnyGetter @@ -46,7 +48,7 @@ public Map getAdditionalProperties() { return this.additionalProperties; } - private boolean equalTo(PrivateKeyJwt other) { + private boolean equalTo(ClientAuthenticationMethodPrivateKeyJwt other) { return credentials.equals(other.credentials); } @@ -73,7 +75,7 @@ public static final class Builder { private Builder() {} - public Builder from(PrivateKeyJwt other) { + public Builder from(ClientAuthenticationMethodPrivateKeyJwt other) { credentials(other.getCredentials()); return this; } @@ -99,8 +101,8 @@ public Builder addAllCredentials(List credentials) { return this; } - public PrivateKeyJwt build() { - return new PrivateKeyJwt(credentials, additionalProperties); + public ClientAuthenticationMethodPrivateKeyJwt build() { + return new ClientAuthenticationMethodPrivateKeyJwt(credentials, additionalProperties); } } } 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 458d19414..a62ae6994 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodSelfSignedTlsClientAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodSelfSignedTlsClientAuth.java @@ -31,9 +31,6 @@ private ClientAuthenticationMethodSelfSignedTlsClientAuth( this.additionalProperties = additionalProperties; } - /** - * @return A list of unique and previously created credential IDs enabled on the client for mTLS authentication utilizing self-signed certificate. - */ @JsonProperty("credentials") public List getCredentials() { return credentials; @@ -83,9 +80,6 @@ public Builder from(ClientAuthenticationMethodSelfSignedTlsClientAuth other) { return this; } - /** - *

A list of unique and previously created credential IDs enabled on the client for mTLS authentication utilizing self-signed certificate.

- */ @JsonSetter(value = "credentials", nulls = Nulls.SKIP) public Builder credentials(List credentials) { this.credentials.clear(); 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 bdaff2ec0..ad24c5dc2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodTlsClientAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodTlsClientAuth.java @@ -31,9 +31,6 @@ private ClientAuthenticationMethodTlsClientAuth( this.additionalProperties = additionalProperties; } - /** - * @return A list of unique and previously created credential IDs enabled on the client for CA-based mTLS authentication. - */ @JsonProperty("credentials") public List getCredentials() { return credentials; @@ -83,9 +80,6 @@ public Builder from(ClientAuthenticationMethodTlsClientAuth other) { return this; } - /** - *

A list of unique and previously created credential IDs enabled on the client for CA-based mTLS authentication.

- */ @JsonSetter(value = "credentials", nulls = Nulls.SKIP) public Builder credentials(List credentials) { this.credentials.clear(); 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 c8b4ccada..cc952dc1f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethod.java @@ -20,18 +20,18 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ClientCreateAuthenticationMethod.Builder.class) public final class ClientCreateAuthenticationMethod { - private final Optional privateKeyJwt; + private final Optional privateKeyJwt; - private final Optional tlsClientAuth; + private final Optional tlsClientAuth; - private final Optional selfSignedTlsClientAuth; + private final Optional selfSignedTlsClientAuth; private final Map additionalProperties; private ClientCreateAuthenticationMethod( - Optional privateKeyJwt, - Optional tlsClientAuth, - Optional selfSignedTlsClientAuth, + Optional privateKeyJwt, + Optional tlsClientAuth, + Optional selfSignedTlsClientAuth, Map additionalProperties) { this.privateKeyJwt = privateKeyJwt; this.tlsClientAuth = tlsClientAuth; @@ -40,17 +40,17 @@ private ClientCreateAuthenticationMethod( } @JsonProperty("private_key_jwt") - public Optional getPrivateKeyJwt() { + public Optional getPrivateKeyJwt() { return privateKeyJwt; } @JsonProperty("tls_client_auth") - public Optional getTlsClientAuth() { + public Optional getTlsClientAuth() { return tlsClientAuth; } @JsonProperty("self_signed_tls_client_auth") - public Optional getSelfSignedTlsClientAuth() { + public Optional getSelfSignedTlsClientAuth() { return selfSignedTlsClientAuth; } @@ -87,11 +87,12 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { - private Optional privateKeyJwt = Optional.empty(); + private Optional privateKeyJwt = Optional.empty(); - private Optional tlsClientAuth = Optional.empty(); + private Optional tlsClientAuth = Optional.empty(); - private Optional selfSignedTlsClientAuth = Optional.empty(); + private Optional selfSignedTlsClientAuth = + Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -106,36 +107,36 @@ public Builder from(ClientCreateAuthenticationMethod other) { } @JsonSetter(value = "private_key_jwt", nulls = Nulls.SKIP) - public Builder privateKeyJwt(Optional privateKeyJwt) { + public Builder privateKeyJwt(Optional privateKeyJwt) { this.privateKeyJwt = privateKeyJwt; return this; } - public Builder privateKeyJwt(PrivateKeyJwt privateKeyJwt) { + public Builder privateKeyJwt(ClientCreateAuthenticationMethodPrivateKeyJwt privateKeyJwt) { this.privateKeyJwt = Optional.ofNullable(privateKeyJwt); return this; } @JsonSetter(value = "tls_client_auth", nulls = Nulls.SKIP) - public Builder tlsClientAuth(Optional tlsClientAuth) { + public Builder tlsClientAuth(Optional tlsClientAuth) { this.tlsClientAuth = tlsClientAuth; return this; } - public Builder tlsClientAuth(ClientAuthenticationMethodTlsClientAuth tlsClientAuth) { + public Builder tlsClientAuth(ClientCreateAuthenticationMethodTlsClientAuth tlsClientAuth) { this.tlsClientAuth = Optional.ofNullable(tlsClientAuth); return this; } @JsonSetter(value = "self_signed_tls_client_auth", nulls = Nulls.SKIP) public Builder selfSignedTlsClientAuth( - Optional selfSignedTlsClientAuth) { + Optional selfSignedTlsClientAuth) { this.selfSignedTlsClientAuth = selfSignedTlsClientAuth; return this; } public Builder selfSignedTlsClientAuth( - ClientAuthenticationMethodSelfSignedTlsClientAuth selfSignedTlsClientAuth) { + CreateClientAuthenticationMethodSelfSignedTlsClientAuth selfSignedTlsClientAuth) { this.selfSignedTlsClientAuth = Optional.ofNullable(selfSignedTlsClientAuth); 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 new file mode 100644 index 000000000..c06ecd0e4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodPrivateKeyJwt.java @@ -0,0 +1,108 @@ +/** + * 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.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ClientCreateAuthenticationMethodPrivateKeyJwt.Builder.class) +public final class ClientCreateAuthenticationMethodPrivateKeyJwt { + private final List credentials; + + private final Map additionalProperties; + + private ClientCreateAuthenticationMethodPrivateKeyJwt( + List credentials, Map additionalProperties) { + this.credentials = credentials; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("credentials") + public List getCredentials() { + return credentials; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ClientCreateAuthenticationMethodPrivateKeyJwt + && equalTo((ClientCreateAuthenticationMethodPrivateKeyJwt) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ClientCreateAuthenticationMethodPrivateKeyJwt other) { + return credentials.equals(other.credentials); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.credentials); + } + + @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 List credentials = new ArrayList<>(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ClientCreateAuthenticationMethodPrivateKeyJwt other) { + credentials(other.getCredentials()); + return this; + } + + @JsonSetter(value = "credentials", nulls = Nulls.SKIP) + public Builder credentials(List credentials) { + this.credentials.clear(); + if (credentials != null) { + this.credentials.addAll(credentials); + } + return this; + } + + public Builder addCredentials(PublicKeyCredential credentials) { + this.credentials.add(credentials); + return this; + } + + public Builder addAllCredentials(List credentials) { + if (credentials != null) { + this.credentials.addAll(credentials); + } + return this; + } + + public ClientCreateAuthenticationMethodPrivateKeyJwt build() { + return new ClientCreateAuthenticationMethodPrivateKeyJwt(credentials, additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodTlsClientAuth.java b/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodTlsClientAuth.java new file mode 100644 index 000000000..01c250372 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodTlsClientAuth.java @@ -0,0 +1,108 @@ +/** + * 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.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ClientCreateAuthenticationMethodTlsClientAuth.Builder.class) +public final class ClientCreateAuthenticationMethodTlsClientAuth { + private final List credentials; + + private final Map additionalProperties; + + private ClientCreateAuthenticationMethodTlsClientAuth( + List credentials, Map additionalProperties) { + this.credentials = credentials; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("credentials") + public List getCredentials() { + return credentials; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ClientCreateAuthenticationMethodTlsClientAuth + && equalTo((ClientCreateAuthenticationMethodTlsClientAuth) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ClientCreateAuthenticationMethodTlsClientAuth other) { + return credentials.equals(other.credentials); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.credentials); + } + + @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 List credentials = new ArrayList<>(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ClientCreateAuthenticationMethodTlsClientAuth other) { + credentials(other.getCredentials()); + return this; + } + + @JsonSetter(value = "credentials", nulls = Nulls.SKIP) + public Builder credentials(List credentials) { + this.credentials.clear(); + if (credentials != null) { + this.credentials.addAll(credentials); + } + return this; + } + + public Builder addCredentials(CertificateSubjectDnCredential credentials) { + this.credentials.add(credentials); + return this; + } + + public Builder addAllCredentials(List credentials) { + if (credentials != null) { + this.credentials.addAll(credentials); + } + return this; + } + + public ClientCreateAuthenticationMethodTlsClientAuth build() { + return new ClientCreateAuthenticationMethodTlsClientAuth(credentials, additionalProperties); + } + } +} 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 e341f8f67..bde9fc310 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferConfiguration.java @@ -53,7 +53,7 @@ private ClientSessionTransferConfiguration( } /** - * @return Indicates whether an app can issue a Session Transfer Token through Token Exchange. If set to 'false', the app will not be able to issue a Session Transfer Token. Usually configured in the native application. + * @return Indicates whether an app can issue a Session Transfer Token through Token Exchange. If set to 'false', the app will not be able to issue a Session Transfer Token. Usually configured in the native application. Default value is false. */ @JsonProperty("can_create_session_transfer_token") public Optional getCanCreateSessionTransferToken() { @@ -61,7 +61,7 @@ public Optional getCanCreateSessionTransferToken() { } /** - * @return Indicates whether revoking the parent Refresh Token that initiated a Native to Web flow and was used to issue a Session Transfer Token should trigger a cascade revocation affecting its dependent child entities. Usually configured in the native application. + * @return Indicates whether revoking the parent Refresh Token that initiated a Native to Web flow and was used to issue a Session Transfer Token should trigger a cascade revocation affecting its dependent child entities. Usually configured in the native application. Default value is true, applicable only in Native to Web SSO context. */ @JsonProperty("enforce_cascade_revocation") public Optional getEnforceCascadeRevocation() { @@ -69,7 +69,7 @@ public Optional getEnforceCascadeRevocation() { } /** - * @return Indicates whether an app can create a session from a Session Transfer Token received via indicated methods. Can include cookie and/or query. Usually configured in the web application. + * @return Indicates whether an app can create a session from a Session Transfer Token received via indicated methods. Can include cookie and/or query. Usually configured in the web application. Default value is an empty array []. */ @JsonProperty("allowed_authentication_methods") public Optional> getAllowedAuthenticationMethods() { @@ -82,7 +82,7 @@ public Optional getEnforceDeviceBinding( } /** - * @return Indicates whether Refresh Tokens are allowed to be issued when authenticating with a Session Transfer Token. Usually configured in the web application. + * @return Indicates whether Refresh Tokens are allowed to be issued when authenticating with a Session Transfer Token. Usually configured in the web application. Default value is false. */ @JsonProperty("allow_refresh_token") public Optional getAllowRefreshToken() { @@ -90,7 +90,7 @@ public Optional getAllowRefreshToken() { } /** - * @return Indicates whether Refresh Tokens created during a native-to-web session are tied to that session's lifetime. This determines if such refresh tokens should be automatically revoked when their corresponding sessions are. Usually configured in the web application. + * @return Indicates whether Refresh Tokens created during a Native to Web session are tied to that session's lifetime. This determines if such refresh tokens should be automatically revoked when their corresponding sessions are. Usually configured in the web application. Default value is true, applicable only in Native to Web SSO context. */ @JsonProperty("enforce_online_refresh_tokens") public Optional getEnforceOnlineRefreshTokens() { @@ -169,7 +169,7 @@ public Builder from(ClientSessionTransferConfiguration other) { } /** - *

Indicates whether an app can issue a Session Transfer Token through Token Exchange. If set to 'false', the app will not be able to issue a Session Transfer Token. Usually configured in the native application.

+ *

Indicates whether an app can issue a Session Transfer Token through Token Exchange. If set to 'false', the app will not be able to issue a Session Transfer Token. Usually configured in the native application. Default value is false.

*/ @JsonSetter(value = "can_create_session_transfer_token", nulls = Nulls.SKIP) public Builder canCreateSessionTransferToken(Optional canCreateSessionTransferToken) { @@ -183,7 +183,7 @@ public Builder canCreateSessionTransferToken(Boolean canCreateSessionTransferTok } /** - *

Indicates whether revoking the parent Refresh Token that initiated a Native to Web flow and was used to issue a Session Transfer Token should trigger a cascade revocation affecting its dependent child entities. Usually configured in the native application.

+ *

Indicates whether revoking the parent Refresh Token that initiated a Native to Web flow and was used to issue a Session Transfer Token should trigger a cascade revocation affecting its dependent child entities. Usually configured in the native application. Default value is true, applicable only in Native to Web SSO context.

*/ @JsonSetter(value = "enforce_cascade_revocation", nulls = Nulls.SKIP) public Builder enforceCascadeRevocation(Optional enforceCascadeRevocation) { @@ -197,7 +197,7 @@ public Builder enforceCascadeRevocation(Boolean enforceCascadeRevocation) { } /** - *

Indicates whether an app can create a session from a Session Transfer Token received via indicated methods. Can include cookie and/or query. Usually configured in the web application.

+ *

Indicates whether an app can create a session from a Session Transfer Token received via indicated methods. Can include cookie and/or query. Usually configured in the web application. Default value is an empty array [].

*/ @JsonSetter(value = "allowed_authentication_methods", nulls = Nulls.SKIP) public Builder allowedAuthenticationMethods( @@ -224,7 +224,7 @@ public Builder enforceDeviceBinding(ClientSessionTransferDeviceBindingEnum enfor } /** - *

Indicates whether Refresh Tokens are allowed to be issued when authenticating with a Session Transfer Token. Usually configured in the web application.

+ *

Indicates whether Refresh Tokens are allowed to be issued when authenticating with a Session Transfer Token. Usually configured in the web application. Default value is false.

*/ @JsonSetter(value = "allow_refresh_token", nulls = Nulls.SKIP) public Builder allowRefreshToken(Optional allowRefreshToken) { @@ -238,7 +238,7 @@ public Builder allowRefreshToken(Boolean allowRefreshToken) { } /** - *

Indicates whether Refresh Tokens created during a native-to-web session are tied to that session's lifetime. This determines if such refresh tokens should be automatically revoked when their corresponding sessions are. Usually configured in the web application.

+ *

Indicates whether Refresh Tokens created during a Native to Web session are tied to that session's lifetime. This determines if such refresh tokens should be automatically revoked when their corresponding sessions are. Usually configured in the web application. Default value is true, applicable only in Native to Web SSO context.

*/ @JsonSetter(value = "enforce_online_refresh_tokens", nulls = Nulls.SKIP) public Builder enforceOnlineRefreshTokens(Optional enforceOnlineRefreshTokens) { 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 e424b5a32..c3273681f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeIdentifier.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeIdentifier.java @@ -22,10 +22,16 @@ public final class ConnectionAttributeIdentifier { private final Optional active; + private final Optional defaultMethod; + private final Map additionalProperties; - private ConnectionAttributeIdentifier(Optional active, Map additionalProperties) { + private ConnectionAttributeIdentifier( + Optional active, + Optional defaultMethod, + Map additionalProperties) { this.active = active; + this.defaultMethod = defaultMethod; this.additionalProperties = additionalProperties; } @@ -37,6 +43,11 @@ public Optional getActive() { return active; } + @JsonProperty("default_method") + public Optional getDefaultMethod() { + return defaultMethod; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -49,12 +60,12 @@ public Map getAdditionalProperties() { } private boolean equalTo(ConnectionAttributeIdentifier other) { - return active.equals(other.active); + return active.equals(other.active) && defaultMethod.equals(other.defaultMethod); } @java.lang.Override public int hashCode() { - return Objects.hash(this.active); + return Objects.hash(this.active, this.defaultMethod); } @java.lang.Override @@ -70,6 +81,8 @@ public static Builder builder() { public static final class Builder { private Optional active = Optional.empty(); + private Optional defaultMethod = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -77,6 +90,7 @@ private Builder() {} public Builder from(ConnectionAttributeIdentifier other) { active(other.getActive()); + defaultMethod(other.getDefaultMethod()); return this; } @@ -94,8 +108,19 @@ public Builder active(Boolean active) { return this; } + @JsonSetter(value = "default_method", nulls = Nulls.SKIP) + public Builder defaultMethod(Optional defaultMethod) { + this.defaultMethod = defaultMethod; + return this; + } + + public Builder defaultMethod(DefaultMethodEmailIdentifierEnum defaultMethod) { + this.defaultMethod = Optional.ofNullable(defaultMethod); + return this; + } + public ConnectionAttributeIdentifier build() { - return new ConnectionAttributeIdentifier(active, additionalProperties); + return new ConnectionAttributeIdentifier(active, defaultMethod, additionalProperties); } } } 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 bb46df26b..74b0dbb1f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationMethods.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationMethods.java @@ -24,14 +24,22 @@ public final class ConnectionAuthenticationMethods { private final Optional passkey; + private final Optional emailOtp; + + private final Optional phoneOtp; + private final Map additionalProperties; private ConnectionAuthenticationMethods( Optional password, Optional passkey, + Optional emailOtp, + Optional phoneOtp, Map additionalProperties) { this.password = password; this.passkey = passkey; + this.emailOtp = emailOtp; + this.phoneOtp = phoneOtp; this.additionalProperties = additionalProperties; } @@ -45,6 +53,16 @@ public Optional getPasskey() { return passkey; } + @JsonProperty("email_otp") + public Optional getEmailOtp() { + return emailOtp; + } + + @JsonProperty("phone_otp") + public Optional getPhoneOtp() { + return phoneOtp; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -57,12 +75,15 @@ public Map getAdditionalProperties() { } private boolean equalTo(ConnectionAuthenticationMethods other) { - return password.equals(other.password) && passkey.equals(other.passkey); + return password.equals(other.password) + && passkey.equals(other.passkey) + && emailOtp.equals(other.emailOtp) + && phoneOtp.equals(other.phoneOtp); } @java.lang.Override public int hashCode() { - return Objects.hash(this.password, this.passkey); + return Objects.hash(this.password, this.passkey, this.emailOtp, this.phoneOtp); } @java.lang.Override @@ -80,6 +101,10 @@ public static final class Builder { private Optional passkey = Optional.empty(); + private Optional emailOtp = Optional.empty(); + + private Optional phoneOtp = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -88,6 +113,8 @@ private Builder() {} public Builder from(ConnectionAuthenticationMethods other) { password(other.getPassword()); passkey(other.getPasskey()); + emailOtp(other.getEmailOtp()); + phoneOtp(other.getPhoneOtp()); return this; } @@ -113,8 +140,30 @@ public Builder passkey(ConnectionPasskeyAuthenticationMethod passkey) { return this; } + @JsonSetter(value = "email_otp", nulls = Nulls.SKIP) + public Builder emailOtp(Optional emailOtp) { + this.emailOtp = emailOtp; + return this; + } + + public Builder emailOtp(ConnectionEmailOtpAuthenticationMethod emailOtp) { + this.emailOtp = Optional.ofNullable(emailOtp); + return this; + } + + @JsonSetter(value = "phone_otp", nulls = Nulls.SKIP) + public Builder phoneOtp(Optional phoneOtp) { + this.phoneOtp = phoneOtp; + return this; + } + + public Builder phoneOtp(ConnectionPhoneOtpAuthenticationMethod phoneOtp) { + this.phoneOtp = Optional.ofNullable(phoneOtp); + return this; + } + public ConnectionAuthenticationMethods build() { - return new ConnectionAuthenticationMethods(password, passkey, additionalProperties); + return new ConnectionAuthenticationMethods(password, passkey, emailOtp, phoneOtp, additionalProperties); } } } 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 b9c9b230e..ce35a0641 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionCommon.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionCommon.java @@ -34,10 +34,6 @@ public final class ConnectionCommon implements IConnectionCommon { private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Map additionalProperties; private ConnectionCommon( @@ -47,8 +43,6 @@ private ConnectionCommon( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Map additionalProperties) { this.authentication = authentication; this.connectedAccounts = connectedAccounts; @@ -56,8 +50,6 @@ private ConnectionCommon( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -97,18 +89,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -126,9 +106,7 @@ private boolean equalTo(ConnectionCommon other) { && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) - && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton); + && metadata.equals(other.metadata); } @java.lang.Override @@ -139,9 +117,7 @@ public int hashCode() { this.displayName, this.enabledClients, this.isDomainConnection, - this.metadata, - this.realms, - this.showAsButton); + this.metadata); } @java.lang.Override @@ -167,10 +143,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -183,8 +155,6 @@ public Builder from(ConnectionCommon other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); return this; } @@ -254,28 +224,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - public ConnectionCommon build() { return new ConnectionCommon( authentication, @@ -284,8 +232,6 @@ public ConnectionCommon build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, additionalProperties); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailEmail.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailEmail.java new file mode 100644 index 000000000..8041b86d7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailEmail.java @@ -0,0 +1,175 @@ +/** + * 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 = ConnectionEmailEmail.Builder.class) +public final class ConnectionEmailEmail { + private final Optional body; + + private final Optional from; + + private final Optional subject; + + private final Optional syntax; + + private final Map additionalProperties; + + private ConnectionEmailEmail( + Optional body, + Optional from, + Optional subject, + Optional syntax, + Map additionalProperties) { + this.body = body; + this.from = from; + this.subject = subject; + this.syntax = syntax; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("body") + public Optional getBody() { + return body; + } + + @JsonProperty("from") + public Optional getFrom() { + return from; + } + + @JsonProperty("subject") + public Optional getSubject() { + return subject; + } + + /** + * @return Email template syntax type + */ + @JsonProperty("syntax") + public Optional getSyntax() { + return syntax; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionEmailEmail && equalTo((ConnectionEmailEmail) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionEmailEmail other) { + return body.equals(other.body) + && from.equals(other.from) + && subject.equals(other.subject) + && syntax.equals(other.syntax); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.body, this.from, this.subject, this.syntax); + } + + @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 body = Optional.empty(); + + private Optional from = Optional.empty(); + + private Optional subject = Optional.empty(); + + private Optional syntax = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionEmailEmail other) { + body(other.getBody()); + from(other.getFrom()); + subject(other.getSubject()); + syntax(other.getSyntax()); + return this; + } + + @JsonSetter(value = "body", nulls = Nulls.SKIP) + public Builder body(Optional body) { + this.body = body; + return this; + } + + public Builder body(String body) { + this.body = Optional.ofNullable(body); + return this; + } + + @JsonSetter(value = "from", nulls = Nulls.SKIP) + public Builder from(Optional from) { + this.from = from; + return this; + } + + public Builder from(String from) { + this.from = Optional.ofNullable(from); + return this; + } + + @JsonSetter(value = "subject", nulls = Nulls.SKIP) + public Builder subject(Optional subject) { + this.subject = subject; + return this; + } + + public Builder subject(String subject) { + this.subject = Optional.ofNullable(subject); + return this; + } + + /** + *

Email template syntax type

+ */ + @JsonSetter(value = "syntax", nulls = Nulls.SKIP) + public Builder syntax(Optional syntax) { + this.syntax = syntax; + return this; + } + + public Builder syntax(String syntax) { + this.syntax = Optional.ofNullable(syntax); + return this; + } + + public ConnectionEmailEmail build() { + return new ConnectionEmailEmail(body, from, subject, syntax, additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailOtpAuthenticationMethod.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailOtpAuthenticationMethod.java new file mode 100644 index 000000000..2ff774eec --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailOtpAuthenticationMethod.java @@ -0,0 +1,103 @@ +/** + * 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 = ConnectionEmailOtpAuthenticationMethod.Builder.class) +public final class ConnectionEmailOtpAuthenticationMethod { + private final Optional enabled; + + private final Map additionalProperties; + + private ConnectionEmailOtpAuthenticationMethod( + Optional enabled, Map additionalProperties) { + this.enabled = enabled; + this.additionalProperties = additionalProperties; + } + + /** + * @return Determines whether email OTP is enabled + */ + @JsonProperty("enabled") + public Optional getEnabled() { + return enabled; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionEmailOtpAuthenticationMethod + && equalTo((ConnectionEmailOtpAuthenticationMethod) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionEmailOtpAuthenticationMethod other) { + return enabled.equals(other.enabled); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.enabled); + } + + @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 enabled = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionEmailOtpAuthenticationMethod other) { + enabled(other.getEnabled()); + return this; + } + + /** + *

Determines whether email OTP is enabled

+ */ + @JsonSetter(value = "enabled", nulls = Nulls.SKIP) + public Builder enabled(Optional enabled) { + this.enabled = enabled; + return this; + } + + public Builder enabled(Boolean enabled) { + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public ConnectionEmailOtpAuthenticationMethod build() { + return new ConnectionEmailOtpAuthenticationMethod(enabled, additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java new file mode 100644 index 000000000..8948dfba8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java @@ -0,0 +1,240 @@ +/** + * 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; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ConnectionGatewayAuthenticationSms.Builder.class) +public final class ConnectionGatewayAuthenticationSms { + private final String audience; + + private final String method; + + private final String secret; + + private final Optional secretBase64Encoded; + + private final Optional subject; + + private final Map additionalProperties; + + private ConnectionGatewayAuthenticationSms( + String audience, + String method, + String secret, + Optional secretBase64Encoded, + Optional subject, + Map additionalProperties) { + this.audience = audience; + this.method = method; + this.secret = secret; + this.secretBase64Encoded = secretBase64Encoded; + this.subject = subject; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("audience") + public String getAudience() { + return audience; + } + + @JsonProperty("method") + public String getMethod() { + return method; + } + + /** + * @return The secret used to sign the JSON Web Token sent to the SMS gateway + */ + @JsonProperty("secret") + public String getSecret() { + return secret; + } + + /** + * @return Set to true if the secret is base64-url-encoded + */ + @JsonProperty("secret_base64_encoded") + public Optional getSecretBase64Encoded() { + return secretBase64Encoded; + } + + @JsonProperty("subject") + public Optional getSubject() { + return subject; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionGatewayAuthenticationSms + && equalTo((ConnectionGatewayAuthenticationSms) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionGatewayAuthenticationSms other) { + return audience.equals(other.audience) + && method.equals(other.method) + && secret.equals(other.secret) + && secretBase64Encoded.equals(other.secretBase64Encoded) + && subject.equals(other.subject); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.audience, this.method, this.secret, this.secretBase64Encoded, this.subject); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AudienceStage builder() { + return new Builder(); + } + + public interface AudienceStage { + MethodStage audience(@NotNull String audience); + + Builder from(ConnectionGatewayAuthenticationSms other); + } + + public interface MethodStage { + SecretStage method(@NotNull String method); + } + + public interface SecretStage { + /** + *

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

+ */ + _FinalStage secret(@NotNull String secret); + } + + public interface _FinalStage { + ConnectionGatewayAuthenticationSms build(); + + /** + *

Set to true if the secret is base64-url-encoded

+ */ + _FinalStage secretBase64Encoded(Optional secretBase64Encoded); + + _FinalStage secretBase64Encoded(Boolean secretBase64Encoded); + + _FinalStage subject(Optional subject); + + _FinalStage subject(String subject); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AudienceStage, MethodStage, SecretStage, _FinalStage { + private String audience; + + private String method; + + private String secret; + + private Optional subject = Optional.empty(); + + private Optional secretBase64Encoded = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(ConnectionGatewayAuthenticationSms other) { + audience(other.getAudience()); + method(other.getMethod()); + secret(other.getSecret()); + secretBase64Encoded(other.getSecretBase64Encoded()); + subject(other.getSubject()); + return this; + } + + @java.lang.Override + @JsonSetter("audience") + public MethodStage audience(@NotNull String audience) { + this.audience = Objects.requireNonNull(audience, "audience must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("method") + public SecretStage method(@NotNull String method) { + this.method = Objects.requireNonNull(method, "method must not be null"); + return this; + } + + /** + *

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

+ *

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

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("secret") + public _FinalStage secret(@NotNull String secret) { + this.secret = Objects.requireNonNull(secret, "secret must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage subject(String subject) { + this.subject = Optional.ofNullable(subject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "subject", nulls = Nulls.SKIP) + public _FinalStage subject(Optional subject) { + this.subject = subject; + return this; + } + + /** + *

Set to true if the secret is base64-url-encoded

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage secretBase64Encoded(Boolean secretBase64Encoded) { + this.secretBase64Encoded = Optional.ofNullable(secretBase64Encoded); + return this; + } + + /** + *

Set to true if the secret is base64-url-encoded

+ */ + @java.lang.Override + @JsonSetter(value = "secret_base64_encoded", nulls = Nulls.SKIP) + public _FinalStage secretBase64Encoded(Optional secretBase64Encoded) { + this.secretBase64Encoded = secretBase64Encoded; + return this; + } + + @java.lang.Override + public ConnectionGatewayAuthenticationSms build() { + return new ConnectionGatewayAuthenticationSms( + audience, method, secret, secretBase64Encoded, subject, additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAdfs.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAdfs.java new file mode 100644 index 000000000..a7550e9d7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAdfs.java @@ -0,0 +1,511 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.NullableNonemptyFilter; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.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 = ConnectionOptionsAdfs.Builder.class) +public final class ConnectionOptionsAdfs implements IConnectionOptionsCommon { + private final Optional> nonPersistentAttrs; + + private final Optional adfsServer; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional fedMetadataXml; + + private final Optional iconUrl; + + private final Optional> prevThumbprints; + + private final Optional setUserRootAttributes; + + private final Optional shouldTrustEmailVerifiedConnection; + + private final Optional signInEndpoint; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final OptionalNullable>> + upstreamParams; + + private final Optional userIdAttribute; + + private final Map additionalProperties; + + private ConnectionOptionsAdfs( + Optional> nonPersistentAttrs, + Optional adfsServer, + Optional> domainAliases, + Optional entityId, + Optional fedMetadataXml, + Optional iconUrl, + Optional> prevThumbprints, + Optional setUserRootAttributes, + Optional shouldTrustEmailVerifiedConnection, + Optional signInEndpoint, + Optional tenantDomain, + Optional> thumbprints, + OptionalNullable>> upstreamParams, + Optional userIdAttribute, + Map additionalProperties) { + this.nonPersistentAttrs = nonPersistentAttrs; + this.adfsServer = adfsServer; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.fedMetadataXml = fedMetadataXml; + this.iconUrl = iconUrl; + this.prevThumbprints = prevThumbprints; + this.setUserRootAttributes = setUserRootAttributes; + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + this.signInEndpoint = signInEndpoint; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.userIdAttribute = userIdAttribute; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("non_persistent_attrs") + @java.lang.Override + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent. + */ + @JsonProperty("adfs_server") + public Optional getAdfsServer() { + return adfsServer; + } + + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + @JsonProperty("fedMetadataXml") + public Optional getFedMetadataXml() { + return fedMetadataXml; + } + + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Previous certificate thumbprints kept for rollover compatibility. + */ + @JsonProperty("prev_thumbprints") + public Optional> getPrevThumbprints() { + return prevThumbprints; + } + + @JsonProperty("set_user_root_attributes") + public Optional getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("should_trust_email_verified_connection") + public Optional getShouldTrustEmailVerifiedConnection() { + return shouldTrustEmailVerifiedConnection; + } + + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("upstream_params") + public OptionalNullable>> getUpstreamParams() { + if (upstreamParams == null) { + return OptionalNullable.absent(); + } + return upstreamParams; + } + + /** + * @return Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name). + */ + @JsonProperty("user_id_attribute") + public Optional getUserIdAttribute() { + return userIdAttribute; + } + + @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; + return other instanceof ConnectionOptionsAdfs && equalTo((ConnectionOptionsAdfs) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionOptionsAdfs other) { + return nonPersistentAttrs.equals(other.nonPersistentAttrs) + && adfsServer.equals(other.adfsServer) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && fedMetadataXml.equals(other.fedMetadataXml) + && iconUrl.equals(other.iconUrl) + && prevThumbprints.equals(other.prevThumbprints) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && shouldTrustEmailVerifiedConnection.equals(other.shouldTrustEmailVerifiedConnection) + && signInEndpoint.equals(other.signInEndpoint) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && userIdAttribute.equals(other.userIdAttribute); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.nonPersistentAttrs, + this.adfsServer, + this.domainAliases, + this.entityId, + this.fedMetadataXml, + this.iconUrl, + this.prevThumbprints, + this.setUserRootAttributes, + this.shouldTrustEmailVerifiedConnection, + this.signInEndpoint, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.userIdAttribute); + } + + @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> nonPersistentAttrs = Optional.empty(); + + private Optional adfsServer = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional fedMetadataXml = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional> prevThumbprints = Optional.empty(); + + private Optional setUserRootAttributes = Optional.empty(); + + private Optional shouldTrustEmailVerifiedConnection = + Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private OptionalNullable>> upstreamParams = + OptionalNullable.absent(); + + private Optional userIdAttribute = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionOptionsAdfs other) { + nonPersistentAttrs(other.getNonPersistentAttrs()); + adfsServer(other.getAdfsServer()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + fedMetadataXml(other.getFedMetadataXml()); + iconUrl(other.getIconUrl()); + prevThumbprints(other.getPrevThumbprints()); + setUserRootAttributes(other.getSetUserRootAttributes()); + shouldTrustEmailVerifiedConnection(other.getShouldTrustEmailVerifiedConnection()); + signInEndpoint(other.getSignInEndpoint()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + userIdAttribute(other.getUserIdAttribute()); + 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; + } + + /** + *

ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent.

+ */ + @JsonSetter(value = "adfs_server", nulls = Nulls.SKIP) + public Builder adfsServer(Optional adfsServer) { + this.adfsServer = adfsServer; + return this; + } + + public Builder adfsServer(String adfsServer) { + this.adfsServer = Optional.ofNullable(adfsServer); + return this; + } + + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'.

+ */ + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public Builder entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + public Builder entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + @JsonSetter(value = "fedMetadataXml", nulls = Nulls.SKIP) + public Builder fedMetadataXml(Optional fedMetadataXml) { + this.fedMetadataXml = fedMetadataXml; + return this; + } + + public Builder fedMetadataXml(String fedMetadataXml) { + this.fedMetadataXml = Optional.ofNullable(fedMetadataXml); + return this; + } + + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

Previous certificate thumbprints kept for rollover compatibility.

+ */ + @JsonSetter(value = "prev_thumbprints", nulls = Nulls.SKIP) + public Builder prevThumbprints(Optional> prevThumbprints) { + this.prevThumbprints = prevThumbprints; + return this; + } + + public Builder prevThumbprints(List prevThumbprints) { + this.prevThumbprints = Optional.ofNullable(prevThumbprints); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes(Optional setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes(ConnectionSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) + public Builder shouldTrustEmailVerifiedConnection( + Optional shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + public Builder shouldTrustEmailVerifiedConnection( + ConnectionShouldTrustEmailVerifiedConnectionEnum shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = Optional.ofNullable(shouldTrustEmailVerifiedConnection); + return this; + } + + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + 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; + } + + /** + *

Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name).

+ */ + @JsonSetter(value = "user_id_attribute", nulls = Nulls.SKIP) + public Builder userIdAttribute(Optional userIdAttribute) { + this.userIdAttribute = userIdAttribute; + return this; + } + + public Builder userIdAttribute(String userIdAttribute) { + this.userIdAttribute = Optional.ofNullable(userIdAttribute); + return this; + } + + public ConnectionOptionsAdfs build() { + return new ConnectionOptionsAdfs( + nonPersistentAttrs, + adfsServer, + domainAliases, + entityId, + fedMetadataXml, + iconUrl, + prevThumbprints, + setUserRootAttributes, + shouldTrustEmailVerifiedConnection, + signInEndpoint, + tenantDomain, + thumbprints, + upstreamParams, + userIdAttribute, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonSaml.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonSaml.java new file mode 100644 index 000000000..df7b4d5bf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonSaml.java @@ -0,0 +1,530 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.NullableNonemptyFilter; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.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 = ConnectionOptionsCommonSaml.Builder.class) +public final class ConnectionOptionsCommonSaml implements IConnectionOptionsCommonSaml { + private final Optional cert; + + private final Optional decryptionKey; + + private final Optional digestAlgorithm; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional iconUrl; + + private final Optional idpinitiated; + + private final Optional protocolBinding; + + private final Optional setUserRootAttributes; + + private final Optional signInEndpoint; + + private final Optional signSamlRequest; + + private final Optional signatureAlgorithm; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final OptionalNullable>> + upstreamParams; + + private final Map additionalProperties; + + private ConnectionOptionsCommonSaml( + Optional cert, + Optional decryptionKey, + Optional digestAlgorithm, + Optional> domainAliases, + Optional entityId, + Optional iconUrl, + Optional idpinitiated, + Optional protocolBinding, + Optional setUserRootAttributes, + Optional signInEndpoint, + Optional signSamlRequest, + Optional signatureAlgorithm, + Optional tenantDomain, + Optional> thumbprints, + OptionalNullable>> upstreamParams, + Map additionalProperties) { + this.cert = cert; + this.decryptionKey = decryptionKey; + this.digestAlgorithm = digestAlgorithm; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.iconUrl = iconUrl; + this.idpinitiated = idpinitiated; + this.protocolBinding = protocolBinding; + this.setUserRootAttributes = setUserRootAttributes; + this.signInEndpoint = signInEndpoint; + this.signSamlRequest = signSamlRequest; + this.signatureAlgorithm = signatureAlgorithm; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("cert") + @java.lang.Override + public Optional getCert() { + return cert; + } + + @JsonProperty("decryptionKey") + @java.lang.Override + public Optional getDecryptionKey() { + return decryptionKey; + } + + @JsonProperty("digestAlgorithm") + @java.lang.Override + public Optional getDigestAlgorithm() { + return digestAlgorithm; + } + + @JsonProperty("domain_aliases") + @java.lang.Override + public Optional> getDomainAliases() { + return domainAliases; + } + + @JsonProperty("entityId") + @java.lang.Override + public Optional getEntityId() { + return entityId; + } + + @JsonProperty("icon_url") + @java.lang.Override + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("idpinitiated") + @java.lang.Override + public Optional getIdpinitiated() { + return idpinitiated; + } + + @JsonProperty("protocolBinding") + @java.lang.Override + public Optional getProtocolBinding() { + return protocolBinding; + } + + @JsonProperty("set_user_root_attributes") + @java.lang.Override + public Optional getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("signInEndpoint") + @java.lang.Override + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + @JsonProperty("signSAMLRequest") + @java.lang.Override + public Optional getSignSamlRequest() { + return signSamlRequest; + } + + @JsonProperty("signatureAlgorithm") + @java.lang.Override + public Optional getSignatureAlgorithm() { + return signatureAlgorithm; + } + + @JsonProperty("tenant_domain") + @java.lang.Override + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. + */ + @JsonProperty("thumbprints") + @java.lang.Override + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("upstream_params") + @java.lang.Override + public OptionalNullable>> getUpstreamParams() { + if (upstreamParams == null) { + return OptionalNullable.absent(); + } + return upstreamParams; + } + + @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; + return other instanceof ConnectionOptionsCommonSaml && equalTo((ConnectionOptionsCommonSaml) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionOptionsCommonSaml other) { + return cert.equals(other.cert) + && decryptionKey.equals(other.decryptionKey) + && digestAlgorithm.equals(other.digestAlgorithm) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && iconUrl.equals(other.iconUrl) + && idpinitiated.equals(other.idpinitiated) + && protocolBinding.equals(other.protocolBinding) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signInEndpoint.equals(other.signInEndpoint) + && signSamlRequest.equals(other.signSamlRequest) + && signatureAlgorithm.equals(other.signatureAlgorithm) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.cert, + this.decryptionKey, + this.digestAlgorithm, + this.domainAliases, + this.entityId, + this.iconUrl, + this.idpinitiated, + this.protocolBinding, + this.setUserRootAttributes, + this.signInEndpoint, + this.signSamlRequest, + this.signatureAlgorithm, + this.tenantDomain, + this.thumbprints, + this.upstreamParams); + } + + @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 cert = Optional.empty(); + + private Optional decryptionKey = Optional.empty(); + + private Optional digestAlgorithm = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional idpinitiated = Optional.empty(); + + private Optional protocolBinding = Optional.empty(); + + private Optional setUserRootAttributes = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional signSamlRequest = Optional.empty(); + + private Optional signatureAlgorithm = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private OptionalNullable>> upstreamParams = + OptionalNullable.absent(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionOptionsCommonSaml other) { + cert(other.getCert()); + decryptionKey(other.getDecryptionKey()); + digestAlgorithm(other.getDigestAlgorithm()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + iconUrl(other.getIconUrl()); + idpinitiated(other.getIdpinitiated()); + protocolBinding(other.getProtocolBinding()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signInEndpoint(other.getSignInEndpoint()); + signSamlRequest(other.getSignSamlRequest()); + signatureAlgorithm(other.getSignatureAlgorithm()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + return this; + } + + @JsonSetter(value = "cert", nulls = Nulls.SKIP) + public Builder cert(Optional cert) { + this.cert = cert; + return this; + } + + public Builder cert(String cert) { + this.cert = Optional.ofNullable(cert); + return this; + } + + @JsonSetter(value = "decryptionKey", nulls = Nulls.SKIP) + public Builder decryptionKey(Optional decryptionKey) { + this.decryptionKey = decryptionKey; + return this; + } + + public Builder decryptionKey(String decryptionKey) { + this.decryptionKey = Optional.ofNullable(decryptionKey); + return this; + } + + @JsonSetter(value = "digestAlgorithm", nulls = Nulls.SKIP) + public Builder digestAlgorithm(Optional digestAlgorithm) { + this.digestAlgorithm = digestAlgorithm; + return this; + } + + public Builder digestAlgorithm(ConnectionDigestAlgorithmEnumSaml digestAlgorithm) { + this.digestAlgorithm = Optional.ofNullable(digestAlgorithm); + return this; + } + + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public Builder entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + public Builder entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + @JsonSetter(value = "idpinitiated", nulls = Nulls.SKIP) + public Builder idpinitiated(Optional idpinitiated) { + this.idpinitiated = idpinitiated; + return this; + } + + public Builder idpinitiated(ConnectionOptionsIdpinitiatedSaml idpinitiated) { + this.idpinitiated = Optional.ofNullable(idpinitiated); + return this; + } + + @JsonSetter(value = "protocolBinding", nulls = Nulls.SKIP) + public Builder protocolBinding(Optional protocolBinding) { + this.protocolBinding = protocolBinding; + return this; + } + + public Builder protocolBinding(ConnectionProtocolBindingEnumSaml protocolBinding) { + this.protocolBinding = Optional.ofNullable(protocolBinding); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes(Optional setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes(ConnectionSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + @JsonSetter(value = "signSAMLRequest", nulls = Nulls.SKIP) + public Builder signSamlRequest(Optional signSamlRequest) { + this.signSamlRequest = signSamlRequest; + return this; + } + + public Builder signSamlRequest(Boolean signSamlRequest) { + this.signSamlRequest = Optional.ofNullable(signSamlRequest); + return this; + } + + @JsonSetter(value = "signatureAlgorithm", nulls = Nulls.SKIP) + public Builder signatureAlgorithm(Optional signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + return this; + } + + public Builder signatureAlgorithm(ConnectionSignatureAlgorithmEnumSaml signatureAlgorithm) { + this.signatureAlgorithm = Optional.ofNullable(signatureAlgorithm); + return this; + } + + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + 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; + } + + public ConnectionOptionsCommonSaml build() { + return new ConnectionOptionsCommonSaml( + cert, + decryptionKey, + digestAlgorithm, + domainAliases, + entityId, + iconUrl, + idpinitiated, + protocolBinding, + setUserRootAttributes, + signInEndpoint, + signSamlRequest, + signatureAlgorithm, + tenantDomain, + thumbprints, + upstreamParams, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java new file mode 100644 index 000000000..eb400e446 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java @@ -0,0 +1,302 @@ +/** + * 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.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ConnectionOptionsEmail.Builder.class) +public final class ConnectionOptionsEmail implements IConnectionOptionsCommon { + private final Optional> nonPersistentAttrs; + + private final Optional authParams; + + private final boolean bruteForceProtection; + + private final Optional disableSignup; + + private final ConnectionEmailEmail email; + + private final String name; + + private final Optional totp; + + private final Map additionalProperties; + + private ConnectionOptionsEmail( + Optional> nonPersistentAttrs, + Optional authParams, + boolean bruteForceProtection, + Optional disableSignup, + ConnectionEmailEmail email, + String name, + Optional totp, + Map additionalProperties) { + this.nonPersistentAttrs = nonPersistentAttrs; + this.authParams = authParams; + this.bruteForceProtection = bruteForceProtection; + this.disableSignup = disableSignup; + this.email = email; + this.name = name; + this.totp = totp; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("non_persistent_attrs") + @java.lang.Override + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("authParams") + public Optional getAuthParams() { + return authParams; + } + + @JsonProperty("brute_force_protection") + public boolean getBruteForceProtection() { + return bruteForceProtection; + } + + @JsonProperty("disable_signup") + public Optional getDisableSignup() { + return disableSignup; + } + + @JsonProperty("email") + public ConnectionEmailEmail getEmail() { + return email; + } + + /** + * @return Connection name + */ + @JsonProperty("name") + public String getName() { + return name; + } + + @JsonProperty("totp") + public Optional getTotp() { + return totp; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionOptionsEmail && equalTo((ConnectionOptionsEmail) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionOptionsEmail other) { + return nonPersistentAttrs.equals(other.nonPersistentAttrs) + && authParams.equals(other.authParams) + && bruteForceProtection == other.bruteForceProtection + && disableSignup.equals(other.disableSignup) + && email.equals(other.email) + && name.equals(other.name) + && totp.equals(other.totp); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.nonPersistentAttrs, + this.authParams, + this.bruteForceProtection, + this.disableSignup, + this.email, + this.name, + this.totp); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static BruteForceProtectionStage builder() { + return new Builder(); + } + + public interface BruteForceProtectionStage { + EmailStage bruteForceProtection(boolean bruteForceProtection); + + Builder from(ConnectionOptionsEmail other); + } + + public interface EmailStage { + NameStage email(@NotNull ConnectionEmailEmail email); + } + + public interface NameStage { + /** + *

Connection name

+ */ + _FinalStage name(@NotNull String name); + } + + public interface _FinalStage { + ConnectionOptionsEmail build(); + + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage authParams(Optional authParams); + + _FinalStage authParams(String authParams); + + _FinalStage disableSignup(Optional disableSignup); + + _FinalStage disableSignup(Boolean disableSignup); + + _FinalStage totp(Optional totp); + + _FinalStage totp(ConnectionTotpEmail totp); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements BruteForceProtectionStage, EmailStage, NameStage, _FinalStage { + private boolean bruteForceProtection; + + private ConnectionEmailEmail email; + + private String name; + + private Optional totp = Optional.empty(); + + private Optional disableSignup = Optional.empty(); + + private Optional authParams = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(ConnectionOptionsEmail other) { + nonPersistentAttrs(other.getNonPersistentAttrs()); + authParams(other.getAuthParams()); + bruteForceProtection(other.getBruteForceProtection()); + disableSignup(other.getDisableSignup()); + email(other.getEmail()); + name(other.getName()); + totp(other.getTotp()); + return this; + } + + @java.lang.Override + @JsonSetter("brute_force_protection") + public EmailStage bruteForceProtection(boolean bruteForceProtection) { + this.bruteForceProtection = bruteForceProtection; + return this; + } + + @java.lang.Override + @JsonSetter("email") + public NameStage email(@NotNull ConnectionEmailEmail email) { + this.email = Objects.requireNonNull(email, "email must not be null"); + return this; + } + + /** + *

Connection name

+ *

Connection name

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage totp(ConnectionTotpEmail totp) { + this.totp = Optional.ofNullable(totp); + return this; + } + + @java.lang.Override + @JsonSetter(value = "totp", nulls = Nulls.SKIP) + public _FinalStage totp(Optional totp) { + this.totp = totp; + return this; + } + + @java.lang.Override + public _FinalStage disableSignup(Boolean disableSignup) { + this.disableSignup = Optional.ofNullable(disableSignup); + return this; + } + + @java.lang.Override + @JsonSetter(value = "disable_signup", nulls = Nulls.SKIP) + public _FinalStage disableSignup(Optional disableSignup) { + this.disableSignup = disableSignup; + return this; + } + + @java.lang.Override + public _FinalStage authParams(String authParams) { + this.authParams = Optional.ofNullable(authParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authParams", nulls = Nulls.SKIP) + public _FinalStage authParams(Optional authParams) { + this.authParams = authParams; + return this; + } + + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + @java.lang.Override + public ConnectionOptionsEmail build() { + return new ConnectionOptionsEmail( + nonPersistentAttrs, + authParams, + bruteForceProtection, + disableSignup, + email, + name, + totp, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPingFederate.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPingFederate.java new file mode 100644 index 000000000..f0724ed39 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPingFederate.java @@ -0,0 +1,742 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.NullableNonemptyFilter; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ConnectionOptionsPingFederate.Builder.class) +public final class ConnectionOptionsPingFederate implements IConnectionOptionsCommonSaml, IConnectionOptionsCommon { + private final Optional cert; + + private final Optional decryptionKey; + + private final Optional digestAlgorithm; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional iconUrl; + + private final Optional idpinitiated; + + private final Optional protocolBinding; + + private final Optional setUserRootAttributes; + + private final Optional signInEndpoint; + + private final Optional signSamlRequest; + + private final Optional signatureAlgorithm; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final OptionalNullable>> + upstreamParams; + + private final Optional> nonPersistentAttrs; + + private final String pingFederateBaseUrl; + + private final Optional signingCert; + + private final Map additionalProperties; + + private ConnectionOptionsPingFederate( + Optional cert, + Optional decryptionKey, + Optional digestAlgorithm, + Optional> domainAliases, + Optional entityId, + Optional iconUrl, + Optional idpinitiated, + Optional protocolBinding, + Optional setUserRootAttributes, + Optional signInEndpoint, + Optional signSamlRequest, + Optional signatureAlgorithm, + Optional tenantDomain, + Optional> thumbprints, + OptionalNullable>> upstreamParams, + Optional> nonPersistentAttrs, + String pingFederateBaseUrl, + Optional signingCert, + Map additionalProperties) { + this.cert = cert; + this.decryptionKey = decryptionKey; + this.digestAlgorithm = digestAlgorithm; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.iconUrl = iconUrl; + this.idpinitiated = idpinitiated; + this.protocolBinding = protocolBinding; + this.setUserRootAttributes = setUserRootAttributes; + this.signInEndpoint = signInEndpoint; + this.signSamlRequest = signSamlRequest; + this.signatureAlgorithm = signatureAlgorithm; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.nonPersistentAttrs = nonPersistentAttrs; + this.pingFederateBaseUrl = pingFederateBaseUrl; + this.signingCert = signingCert; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("cert") + @java.lang.Override + public Optional getCert() { + return cert; + } + + @JsonProperty("decryptionKey") + @java.lang.Override + public Optional getDecryptionKey() { + return decryptionKey; + } + + @JsonProperty("digestAlgorithm") + @java.lang.Override + public Optional getDigestAlgorithm() { + return digestAlgorithm; + } + + @JsonProperty("domain_aliases") + @java.lang.Override + public Optional> getDomainAliases() { + return domainAliases; + } + + @JsonProperty("entityId") + @java.lang.Override + public Optional getEntityId() { + return entityId; + } + + @JsonProperty("icon_url") + @java.lang.Override + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("idpinitiated") + @java.lang.Override + public Optional getIdpinitiated() { + return idpinitiated; + } + + @JsonProperty("protocolBinding") + @java.lang.Override + public Optional getProtocolBinding() { + return protocolBinding; + } + + @JsonProperty("set_user_root_attributes") + @java.lang.Override + public Optional getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("signInEndpoint") + @java.lang.Override + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + @JsonProperty("signSAMLRequest") + @java.lang.Override + public Optional getSignSamlRequest() { + return signSamlRequest; + } + + @JsonProperty("signatureAlgorithm") + @java.lang.Override + public Optional getSignatureAlgorithm() { + return signatureAlgorithm; + } + + @JsonProperty("tenant_domain") + @java.lang.Override + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. + */ + @JsonProperty("thumbprints") + @java.lang.Override + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("upstream_params") + @java.lang.Override + public OptionalNullable>> getUpstreamParams() { + if (upstreamParams == null) { + return OptionalNullable.absent(); + } + return upstreamParams; + } + + @JsonProperty("non_persistent_attrs") + @java.lang.Override + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("pingFederateBaseUrl") + public String getPingFederateBaseUrl() { + return pingFederateBaseUrl; + } + + @JsonProperty("signingCert") + public Optional getSigningCert() { + return signingCert; + } + + @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; + return other instanceof ConnectionOptionsPingFederate && equalTo((ConnectionOptionsPingFederate) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionOptionsPingFederate other) { + return cert.equals(other.cert) + && decryptionKey.equals(other.decryptionKey) + && digestAlgorithm.equals(other.digestAlgorithm) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && iconUrl.equals(other.iconUrl) + && idpinitiated.equals(other.idpinitiated) + && protocolBinding.equals(other.protocolBinding) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signInEndpoint.equals(other.signInEndpoint) + && signSamlRequest.equals(other.signSamlRequest) + && signatureAlgorithm.equals(other.signatureAlgorithm) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && pingFederateBaseUrl.equals(other.pingFederateBaseUrl) + && signingCert.equals(other.signingCert); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.cert, + this.decryptionKey, + this.digestAlgorithm, + this.domainAliases, + this.entityId, + this.iconUrl, + this.idpinitiated, + this.protocolBinding, + this.setUserRootAttributes, + this.signInEndpoint, + this.signSamlRequest, + this.signatureAlgorithm, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.nonPersistentAttrs, + this.pingFederateBaseUrl, + this.signingCert); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static PingFederateBaseUrlStage builder() { + return new Builder(); + } + + public interface PingFederateBaseUrlStage { + _FinalStage pingFederateBaseUrl(@NotNull String pingFederateBaseUrl); + + Builder from(ConnectionOptionsPingFederate other); + } + + public interface _FinalStage { + ConnectionOptionsPingFederate build(); + + _FinalStage cert(Optional cert); + + _FinalStage cert(String cert); + + _FinalStage decryptionKey(Optional decryptionKey); + + _FinalStage decryptionKey(String decryptionKey); + + _FinalStage digestAlgorithm(Optional digestAlgorithm); + + _FinalStage digestAlgorithm(ConnectionDigestAlgorithmEnumSaml digestAlgorithm); + + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + _FinalStage entityId(Optional entityId); + + _FinalStage entityId(String entityId); + + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + _FinalStage idpinitiated(Optional idpinitiated); + + _FinalStage idpinitiated(ConnectionOptionsIdpinitiatedSaml idpinitiated); + + _FinalStage protocolBinding(Optional protocolBinding); + + _FinalStage protocolBinding(ConnectionProtocolBindingEnumSaml protocolBinding); + + _FinalStage setUserRootAttributes(Optional setUserRootAttributes); + + _FinalStage setUserRootAttributes(ConnectionSetUserRootAttributesEnum setUserRootAttributes); + + _FinalStage signInEndpoint(Optional signInEndpoint); + + _FinalStage signInEndpoint(String signInEndpoint); + + _FinalStage signSamlRequest(Optional signSamlRequest); + + _FinalStage signSamlRequest(Boolean signSamlRequest); + + _FinalStage signatureAlgorithm(Optional signatureAlgorithm); + + _FinalStage signatureAlgorithm(ConnectionSignatureAlgorithmEnumSaml signatureAlgorithm); + + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + _FinalStage thumbprints(Optional> thumbprints); + + _FinalStage thumbprints(List thumbprints); + + _FinalStage upstreamParams( + @Nullable + OptionalNullable>> + upstreamParams); + + _FinalStage upstreamParams( + Map> upstreamParams); + + _FinalStage upstreamParams( + Optional>> upstreamParams); + + _FinalStage upstreamParams( + com.auth0.client.mgmt.core.Nullable< + Map>> + upstreamParams); + + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage signingCert(Optional signingCert); + + _FinalStage signingCert(String signingCert); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements PingFederateBaseUrlStage, _FinalStage { + private String pingFederateBaseUrl; + + private Optional signingCert = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private OptionalNullable>> upstreamParams = + OptionalNullable.absent(); + + private Optional> thumbprints = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional signatureAlgorithm = Optional.empty(); + + private Optional signSamlRequest = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional setUserRootAttributes = Optional.empty(); + + private Optional protocolBinding = Optional.empty(); + + private Optional idpinitiated = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional digestAlgorithm = Optional.empty(); + + private Optional decryptionKey = Optional.empty(); + + private Optional cert = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(ConnectionOptionsPingFederate other) { + cert(other.getCert()); + decryptionKey(other.getDecryptionKey()); + digestAlgorithm(other.getDigestAlgorithm()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + iconUrl(other.getIconUrl()); + idpinitiated(other.getIdpinitiated()); + protocolBinding(other.getProtocolBinding()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signInEndpoint(other.getSignInEndpoint()); + signSamlRequest(other.getSignSamlRequest()); + signatureAlgorithm(other.getSignatureAlgorithm()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + pingFederateBaseUrl(other.getPingFederateBaseUrl()); + signingCert(other.getSigningCert()); + return this; + } + + @java.lang.Override + @JsonSetter("pingFederateBaseUrl") + public _FinalStage pingFederateBaseUrl(@NotNull String pingFederateBaseUrl) { + this.pingFederateBaseUrl = + Objects.requireNonNull(pingFederateBaseUrl, "pingFederateBaseUrl must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage signingCert(String signingCert) { + this.signingCert = Optional.ofNullable(signingCert); + return this; + } + + @java.lang.Override + @JsonSetter(value = "signingCert", nulls = Nulls.SKIP) + public _FinalStage signingCert(Optional signingCert) { + this.signingCert = signingCert; + return this; + } + + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + @java.lang.Override + public _FinalStage 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; + } + + @java.lang.Override + public _FinalStage upstreamParams( + Optional>> upstreamParams) { + if (upstreamParams.isPresent()) { + this.upstreamParams = OptionalNullable.of(upstreamParams.get()); + } else { + this.upstreamParams = OptionalNullable.absent(); + } + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams( + Map> upstreamParams) { + this.upstreamParams = OptionalNullable.of(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams( + @Nullable + OptionalNullable>> + upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + @java.lang.Override + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public _FinalStage thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage signatureAlgorithm(ConnectionSignatureAlgorithmEnumSaml signatureAlgorithm) { + this.signatureAlgorithm = Optional.ofNullable(signatureAlgorithm); + return this; + } + + @java.lang.Override + @JsonSetter(value = "signatureAlgorithm", nulls = Nulls.SKIP) + public _FinalStage signatureAlgorithm(Optional signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + return this; + } + + @java.lang.Override + public _FinalStage signSamlRequest(Boolean signSamlRequest) { + this.signSamlRequest = Optional.ofNullable(signSamlRequest); + return this; + } + + @java.lang.Override + @JsonSetter(value = "signSAMLRequest", nulls = Nulls.SKIP) + public _FinalStage signSamlRequest(Optional signSamlRequest) { + this.signSamlRequest = signSamlRequest; + return this; + } + + @java.lang.Override + public _FinalStage signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + @java.lang.Override + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public _FinalStage signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes(ConnectionSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes(Optional setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + @java.lang.Override + public _FinalStage protocolBinding(ConnectionProtocolBindingEnumSaml protocolBinding) { + this.protocolBinding = Optional.ofNullable(protocolBinding); + return this; + } + + @java.lang.Override + @JsonSetter(value = "protocolBinding", nulls = Nulls.SKIP) + public _FinalStage protocolBinding(Optional protocolBinding) { + this.protocolBinding = protocolBinding; + return this; + } + + @java.lang.Override + public _FinalStage idpinitiated(ConnectionOptionsIdpinitiatedSaml idpinitiated) { + this.idpinitiated = Optional.ofNullable(idpinitiated); + return this; + } + + @java.lang.Override + @JsonSetter(value = "idpinitiated", nulls = Nulls.SKIP) + public _FinalStage idpinitiated(Optional idpinitiated) { + this.idpinitiated = idpinitiated; + return this; + } + + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + @java.lang.Override + public _FinalStage entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + @java.lang.Override + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public _FinalStage entityId(Optional entityId) { + this.entityId = entityId; + 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 digestAlgorithm(ConnectionDigestAlgorithmEnumSaml digestAlgorithm) { + this.digestAlgorithm = Optional.ofNullable(digestAlgorithm); + return this; + } + + @java.lang.Override + @JsonSetter(value = "digestAlgorithm", nulls = Nulls.SKIP) + public _FinalStage digestAlgorithm(Optional digestAlgorithm) { + this.digestAlgorithm = digestAlgorithm; + return this; + } + + @java.lang.Override + public _FinalStage decryptionKey(String decryptionKey) { + this.decryptionKey = Optional.ofNullable(decryptionKey); + return this; + } + + @java.lang.Override + @JsonSetter(value = "decryptionKey", nulls = Nulls.SKIP) + public _FinalStage decryptionKey(Optional decryptionKey) { + this.decryptionKey = decryptionKey; + return this; + } + + @java.lang.Override + public _FinalStage cert(String cert) { + this.cert = Optional.ofNullable(cert); + return this; + } + + @java.lang.Override + @JsonSetter(value = "cert", nulls = Nulls.SKIP) + public _FinalStage cert(Optional cert) { + this.cert = cert; + return this; + } + + @java.lang.Override + public ConnectionOptionsPingFederate build() { + return new ConnectionOptionsPingFederate( + cert, + decryptionKey, + digestAlgorithm, + domainAliases, + entityId, + iconUrl, + idpinitiated, + protocolBinding, + setUserRootAttributes, + signInEndpoint, + signSamlRequest, + signatureAlgorithm, + tenantDomain, + thumbprints, + upstreamParams, + nonPersistentAttrs, + pingFederateBaseUrl, + signingCert, + additionalProperties); + } + } +} 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 01f44cc52..1454fb576 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSaml.java @@ -23,67 +23,67 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionOptionsSaml.Builder.class) -public final class ConnectionOptionsSaml { +public final class ConnectionOptionsSaml implements IConnectionOptionsCommonSaml, IConnectionOptionsCommon { private final Optional cert; - private final Optional debug; - private final Optional decryptionKey; - private final Optional deflate; - - private final Optional destinationUrl; - private final Optional digestAlgorithm; - private final Optional disableSignout; - private final Optional> domainAliases; private final Optional entityId; - private final Optional> fieldsMap; + private final Optional iconUrl; - private final Optional globalTokenRevocationJwtIss; + private final Optional idpinitiated; - private final Optional globalTokenRevocationJwtSub; + private final Optional protocolBinding; - private final Optional iconUrl; + private final Optional setUserRootAttributes; - private final Optional idpinitiated; + private final Optional signInEndpoint; - private final Optional metadataUrl; + private final Optional signSamlRequest; - private final Optional metadataXml; + private final Optional signatureAlgorithm; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final OptionalNullable>> + upstreamParams; private final Optional> nonPersistentAttrs; - private final Optional protocolBinding; + private final Optional debug; - private final Optional recipientUrl; + private final Optional deflate; - private final Optional requestTemplate; + private final Optional destinationUrl; - private final Optional setUserRootAttributes; + private final Optional disableSignout; - private final Optional signInEndpoint; + private final Optional> fieldsMap; - private final Optional signOutEndpoint; + private final Optional globalTokenRevocationJwtIss; - private final Optional signSamlRequest; + private final Optional globalTokenRevocationJwtSub; - private final Optional signatureAlgorithm; + private final Optional metadataUrl; - private final Optional signingCert; + private final Optional metadataXml; - private final Optional signingKey; + private final Optional recipientUrl; - private final Optional tenantDomain; + private final Optional requestTemplate; - private final Optional> thumbprints; + private final Optional signingCert; - private final OptionalNullable>> - upstreamParams; + private final Optional signingKey; + + private final Optional signOutEndpoint; private final Optional userIdAttribute; @@ -91,216 +91,145 @@ public final class ConnectionOptionsSaml { private ConnectionOptionsSaml( Optional cert, - Optional debug, Optional decryptionKey, - Optional deflate, - Optional destinationUrl, Optional digestAlgorithm, - Optional disableSignout, Optional> domainAliases, Optional entityId, - Optional> fieldsMap, - Optional globalTokenRevocationJwtIss, - Optional globalTokenRevocationJwtSub, Optional iconUrl, Optional idpinitiated, - Optional metadataUrl, - Optional metadataXml, - Optional> nonPersistentAttrs, Optional protocolBinding, - Optional recipientUrl, - Optional requestTemplate, Optional setUserRootAttributes, Optional signInEndpoint, - Optional signOutEndpoint, Optional signSamlRequest, Optional signatureAlgorithm, - Optional signingCert, - Optional signingKey, Optional tenantDomain, Optional> thumbprints, OptionalNullable>> upstreamParams, + Optional> nonPersistentAttrs, + Optional debug, + Optional deflate, + Optional destinationUrl, + Optional disableSignout, + Optional> fieldsMap, + Optional globalTokenRevocationJwtIss, + Optional globalTokenRevocationJwtSub, + Optional metadataUrl, + Optional metadataXml, + Optional recipientUrl, + Optional requestTemplate, + Optional signingCert, + Optional signingKey, + Optional signOutEndpoint, Optional userIdAttribute, Map additionalProperties) { this.cert = cert; - this.debug = debug; this.decryptionKey = decryptionKey; - this.deflate = deflate; - this.destinationUrl = destinationUrl; this.digestAlgorithm = digestAlgorithm; - this.disableSignout = disableSignout; this.domainAliases = domainAliases; this.entityId = entityId; - this.fieldsMap = fieldsMap; - this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; - this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; this.iconUrl = iconUrl; this.idpinitiated = idpinitiated; - this.metadataUrl = metadataUrl; - this.metadataXml = metadataXml; - this.nonPersistentAttrs = nonPersistentAttrs; this.protocolBinding = protocolBinding; - this.recipientUrl = recipientUrl; - this.requestTemplate = requestTemplate; this.setUserRootAttributes = setUserRootAttributes; this.signInEndpoint = signInEndpoint; - this.signOutEndpoint = signOutEndpoint; this.signSamlRequest = signSamlRequest; this.signatureAlgorithm = signatureAlgorithm; - this.signingCert = signingCert; - this.signingKey = signingKey; this.tenantDomain = tenantDomain; this.thumbprints = thumbprints; this.upstreamParams = upstreamParams; + this.nonPersistentAttrs = nonPersistentAttrs; + this.debug = debug; + this.deflate = deflate; + this.destinationUrl = destinationUrl; + this.disableSignout = disableSignout; + this.fieldsMap = fieldsMap; + this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; + this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; + this.metadataUrl = metadataUrl; + this.metadataXml = metadataXml; + this.recipientUrl = recipientUrl; + this.requestTemplate = requestTemplate; + this.signingCert = signingCert; + this.signingKey = signingKey; + this.signOutEndpoint = signOutEndpoint; this.userIdAttribute = userIdAttribute; this.additionalProperties = additionalProperties; } @JsonProperty("cert") + @java.lang.Override public Optional getCert() { return cert; } - @JsonProperty("debug") - public Optional getDebug() { - return debug; - } - @JsonProperty("decryptionKey") + @java.lang.Override public Optional getDecryptionKey() { return decryptionKey; } - @JsonProperty("deflate") - public Optional getDeflate() { - return deflate; - } - - @JsonProperty("destinationUrl") - public Optional getDestinationUrl() { - return destinationUrl; - } - @JsonProperty("digestAlgorithm") + @java.lang.Override public Optional getDigestAlgorithm() { return digestAlgorithm; } - /** - * @return When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled). - */ - @JsonProperty("disableSignout") - public Optional getDisableSignout() { - return disableSignout; - } - @JsonProperty("domain_aliases") + @java.lang.Override public Optional> getDomainAliases() { return domainAliases; } @JsonProperty("entityId") + @java.lang.Override public Optional getEntityId() { return entityId; } - @JsonProperty("fieldsMap") - public Optional> getFieldsMap() { - return fieldsMap; - } - - /** - * @return Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub. - */ - @JsonProperty("global_token_revocation_jwt_iss") - public Optional getGlobalTokenRevocationJwtIss() { - return globalTokenRevocationJwtIss; - } - - /** - * @return Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss. - */ - @JsonProperty("global_token_revocation_jwt_sub") - public Optional getGlobalTokenRevocationJwtSub() { - return globalTokenRevocationJwtSub; - } - @JsonProperty("icon_url") + @java.lang.Override public Optional getIconUrl() { return iconUrl; } @JsonProperty("idpinitiated") + @java.lang.Override public Optional getIdpinitiated() { return idpinitiated; } - @JsonProperty("metadataUrl") - public Optional getMetadataUrl() { - return metadataUrl; - } - - @JsonProperty("metadataXml") - public Optional getMetadataXml() { - return metadataXml; - } - - @JsonProperty("non_persistent_attrs") - public Optional> getNonPersistentAttrs() { - return nonPersistentAttrs; - } - @JsonProperty("protocolBinding") + @java.lang.Override public Optional getProtocolBinding() { return protocolBinding; } - @JsonProperty("recipientUrl") - public Optional getRecipientUrl() { - return recipientUrl; - } - - @JsonProperty("requestTemplate") - public Optional getRequestTemplate() { - return requestTemplate; - } - @JsonProperty("set_user_root_attributes") + @java.lang.Override public Optional getSetUserRootAttributes() { return setUserRootAttributes; } @JsonProperty("signInEndpoint") + @java.lang.Override public Optional getSignInEndpoint() { return signInEndpoint; } - @JsonProperty("signOutEndpoint") - public Optional getSignOutEndpoint() { - return signOutEndpoint; - } - @JsonProperty("signSAMLRequest") + @java.lang.Override public Optional getSignSamlRequest() { return signSamlRequest; } @JsonProperty("signatureAlgorithm") + @java.lang.Override public Optional getSignatureAlgorithm() { return signatureAlgorithm; } - @JsonProperty("signingCert") - public Optional getSigningCert() { - return signingCert; - } - - @JsonProperty("signing_key") - public Optional getSigningKey() { - return signingKey; - } - @JsonProperty("tenant_domain") + @java.lang.Override public Optional getTenantDomain() { return tenantDomain; } @@ -309,12 +238,14 @@ public Optional getTenantDomain() { * @return SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. */ @JsonProperty("thumbprints") + @java.lang.Override public Optional> getThumbprints() { return thumbprints; } @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("upstream_params") + @java.lang.Override public OptionalNullable>> getUpstreamParams() { if (upstreamParams == null) { return OptionalNullable.absent(); @@ -322,60 +253,139 @@ public OptionalNullable getUserIdAttribute() { - return userIdAttribute; + @JsonProperty("non_persistent_attrs") + @java.lang.Override + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("upstream_params") - private OptionalNullable>> - _getUpstreamParams() { - return upstreamParams; + @JsonProperty("debug") + public Optional getDebug() { + return debug; } - @java.lang.Override - public boolean equals(Object other) { - if (this == other) return true; - return other instanceof ConnectionOptionsSaml && equalTo((ConnectionOptionsSaml) other); + @JsonProperty("deflate") + public Optional getDeflate() { + return deflate; } - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; + @JsonProperty("destinationUrl") + public Optional getDestinationUrl() { + return destinationUrl; } - private boolean equalTo(ConnectionOptionsSaml other) { - return cert.equals(other.cert) - && debug.equals(other.debug) - && decryptionKey.equals(other.decryptionKey) - && deflate.equals(other.deflate) - && destinationUrl.equals(other.destinationUrl) - && digestAlgorithm.equals(other.digestAlgorithm) - && disableSignout.equals(other.disableSignout) - && domainAliases.equals(other.domainAliases) - && entityId.equals(other.entityId) - && fieldsMap.equals(other.fieldsMap) - && globalTokenRevocationJwtIss.equals(other.globalTokenRevocationJwtIss) - && globalTokenRevocationJwtSub.equals(other.globalTokenRevocationJwtSub) + /** + * @return When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled). + */ + @JsonProperty("disableSignout") + public Optional getDisableSignout() { + return disableSignout; + } + + @JsonProperty("fieldsMap") + public Optional> getFieldsMap() { + return fieldsMap; + } + + @JsonProperty("global_token_revocation_jwt_iss") + public Optional getGlobalTokenRevocationJwtIss() { + return globalTokenRevocationJwtIss; + } + + @JsonProperty("global_token_revocation_jwt_sub") + public Optional getGlobalTokenRevocationJwtSub() { + return globalTokenRevocationJwtSub; + } + + @JsonProperty("metadataUrl") + public Optional getMetadataUrl() { + return metadataUrl; + } + + @JsonProperty("metadataXml") + public Optional getMetadataXml() { + return metadataXml; + } + + @JsonProperty("recipientUrl") + public Optional getRecipientUrl() { + return recipientUrl; + } + + @JsonProperty("requestTemplate") + public Optional getRequestTemplate() { + return requestTemplate; + } + + @JsonProperty("signingCert") + public Optional getSigningCert() { + return signingCert; + } + + @JsonProperty("signing_key") + public Optional getSigningKey() { + return signingKey; + } + + @JsonProperty("signOutEndpoint") + public Optional getSignOutEndpoint() { + return signOutEndpoint; + } + + @JsonProperty("user_id_attribute") + public Optional getUserIdAttribute() { + return userIdAttribute; + } + + @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; + return other instanceof ConnectionOptionsSaml && equalTo((ConnectionOptionsSaml) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionOptionsSaml other) { + return cert.equals(other.cert) + && decryptionKey.equals(other.decryptionKey) + && digestAlgorithm.equals(other.digestAlgorithm) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) && iconUrl.equals(other.iconUrl) && idpinitiated.equals(other.idpinitiated) - && metadataUrl.equals(other.metadataUrl) - && metadataXml.equals(other.metadataXml) - && nonPersistentAttrs.equals(other.nonPersistentAttrs) && protocolBinding.equals(other.protocolBinding) - && recipientUrl.equals(other.recipientUrl) - && requestTemplate.equals(other.requestTemplate) && setUserRootAttributes.equals(other.setUserRootAttributes) && signInEndpoint.equals(other.signInEndpoint) - && signOutEndpoint.equals(other.signOutEndpoint) && signSamlRequest.equals(other.signSamlRequest) && signatureAlgorithm.equals(other.signatureAlgorithm) - && signingCert.equals(other.signingCert) - && signingKey.equals(other.signingKey) && tenantDomain.equals(other.tenantDomain) && thumbprints.equals(other.thumbprints) && upstreamParams.equals(other.upstreamParams) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && debug.equals(other.debug) + && deflate.equals(other.deflate) + && destinationUrl.equals(other.destinationUrl) + && disableSignout.equals(other.disableSignout) + && fieldsMap.equals(other.fieldsMap) + && globalTokenRevocationJwtIss.equals(other.globalTokenRevocationJwtIss) + && globalTokenRevocationJwtSub.equals(other.globalTokenRevocationJwtSub) + && metadataUrl.equals(other.metadataUrl) + && metadataXml.equals(other.metadataXml) + && recipientUrl.equals(other.recipientUrl) + && requestTemplate.equals(other.requestTemplate) + && signingCert.equals(other.signingCert) + && signingKey.equals(other.signingKey) + && signOutEndpoint.equals(other.signOutEndpoint) && userIdAttribute.equals(other.userIdAttribute); } @@ -383,35 +393,35 @@ private boolean equalTo(ConnectionOptionsSaml other) { public int hashCode() { return Objects.hash( this.cert, - this.debug, this.decryptionKey, - this.deflate, - this.destinationUrl, this.digestAlgorithm, - this.disableSignout, this.domainAliases, this.entityId, - this.fieldsMap, - this.globalTokenRevocationJwtIss, - this.globalTokenRevocationJwtSub, this.iconUrl, this.idpinitiated, - this.metadataUrl, - this.metadataXml, - this.nonPersistentAttrs, this.protocolBinding, - this.recipientUrl, - this.requestTemplate, this.setUserRootAttributes, this.signInEndpoint, - this.signOutEndpoint, this.signSamlRequest, this.signatureAlgorithm, - this.signingCert, - this.signingKey, this.tenantDomain, this.thumbprints, this.upstreamParams, + this.nonPersistentAttrs, + this.debug, + this.deflate, + this.destinationUrl, + this.disableSignout, + this.fieldsMap, + this.globalTokenRevocationJwtIss, + this.globalTokenRevocationJwtSub, + this.metadataUrl, + this.metadataXml, + this.recipientUrl, + this.requestTemplate, + this.signingCert, + this.signingKey, + this.signOutEndpoint, this.userIdAttribute); } @@ -428,64 +438,64 @@ public static Builder builder() { public static final class Builder { private Optional cert = Optional.empty(); - private Optional debug = Optional.empty(); - private Optional decryptionKey = Optional.empty(); - private Optional deflate = Optional.empty(); - - private Optional destinationUrl = Optional.empty(); - private Optional digestAlgorithm = Optional.empty(); - private Optional disableSignout = Optional.empty(); - private Optional> domainAliases = Optional.empty(); private Optional entityId = Optional.empty(); - private Optional> fieldsMap = Optional.empty(); + private Optional iconUrl = Optional.empty(); - private Optional globalTokenRevocationJwtIss = Optional.empty(); + private Optional idpinitiated = Optional.empty(); - private Optional globalTokenRevocationJwtSub = Optional.empty(); + private Optional protocolBinding = Optional.empty(); - private Optional iconUrl = Optional.empty(); + private Optional setUserRootAttributes = Optional.empty(); - private Optional idpinitiated = Optional.empty(); + private Optional signInEndpoint = Optional.empty(); - private Optional metadataUrl = Optional.empty(); + private Optional signSamlRequest = Optional.empty(); - private Optional metadataXml = Optional.empty(); + private Optional signatureAlgorithm = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private OptionalNullable>> upstreamParams = + OptionalNullable.absent(); private Optional> nonPersistentAttrs = Optional.empty(); - private Optional protocolBinding = Optional.empty(); + private Optional debug = Optional.empty(); - private Optional recipientUrl = Optional.empty(); + private Optional deflate = Optional.empty(); - private Optional requestTemplate = Optional.empty(); + private Optional destinationUrl = Optional.empty(); - private Optional setUserRootAttributes = Optional.empty(); + private Optional disableSignout = Optional.empty(); - private Optional signInEndpoint = Optional.empty(); + private Optional> fieldsMap = Optional.empty(); - private Optional signOutEndpoint = Optional.empty(); + private Optional globalTokenRevocationJwtIss = Optional.empty(); - private Optional signSamlRequest = Optional.empty(); + private Optional globalTokenRevocationJwtSub = Optional.empty(); - private Optional signatureAlgorithm = Optional.empty(); + private Optional metadataUrl = Optional.empty(); - private Optional signingCert = Optional.empty(); + private Optional metadataXml = Optional.empty(); - private Optional signingKey = Optional.empty(); + private Optional recipientUrl = Optional.empty(); - private Optional tenantDomain = Optional.empty(); + private Optional requestTemplate = Optional.empty(); - private Optional> thumbprints = Optional.empty(); + private Optional signingCert = Optional.empty(); - private OptionalNullable>> upstreamParams = - OptionalNullable.absent(); + private Optional signingKey = Optional.empty(); + + private Optional signOutEndpoint = Optional.empty(); private Optional userIdAttribute = Optional.empty(); @@ -496,47 +506,243 @@ private Builder() {} public Builder from(ConnectionOptionsSaml other) { cert(other.getCert()); - debug(other.getDebug()); decryptionKey(other.getDecryptionKey()); - deflate(other.getDeflate()); - destinationUrl(other.getDestinationUrl()); digestAlgorithm(other.getDigestAlgorithm()); - disableSignout(other.getDisableSignout()); domainAliases(other.getDomainAliases()); entityId(other.getEntityId()); - fieldsMap(other.getFieldsMap()); - globalTokenRevocationJwtIss(other.getGlobalTokenRevocationJwtIss()); - globalTokenRevocationJwtSub(other.getGlobalTokenRevocationJwtSub()); iconUrl(other.getIconUrl()); idpinitiated(other.getIdpinitiated()); - metadataUrl(other.getMetadataUrl()); - metadataXml(other.getMetadataXml()); - nonPersistentAttrs(other.getNonPersistentAttrs()); protocolBinding(other.getProtocolBinding()); - recipientUrl(other.getRecipientUrl()); - requestTemplate(other.getRequestTemplate()); setUserRootAttributes(other.getSetUserRootAttributes()); signInEndpoint(other.getSignInEndpoint()); - signOutEndpoint(other.getSignOutEndpoint()); signSamlRequest(other.getSignSamlRequest()); signatureAlgorithm(other.getSignatureAlgorithm()); - signingCert(other.getSigningCert()); - signingKey(other.getSigningKey()); tenantDomain(other.getTenantDomain()); thumbprints(other.getThumbprints()); upstreamParams(other.getUpstreamParams()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + debug(other.getDebug()); + deflate(other.getDeflate()); + destinationUrl(other.getDestinationUrl()); + disableSignout(other.getDisableSignout()); + fieldsMap(other.getFieldsMap()); + globalTokenRevocationJwtIss(other.getGlobalTokenRevocationJwtIss()); + globalTokenRevocationJwtSub(other.getGlobalTokenRevocationJwtSub()); + metadataUrl(other.getMetadataUrl()); + metadataXml(other.getMetadataXml()); + recipientUrl(other.getRecipientUrl()); + requestTemplate(other.getRequestTemplate()); + signingCert(other.getSigningCert()); + signingKey(other.getSigningKey()); + signOutEndpoint(other.getSignOutEndpoint()); userIdAttribute(other.getUserIdAttribute()); return this; } - @JsonSetter(value = "cert", nulls = Nulls.SKIP) - public Builder cert(Optional cert) { - this.cert = cert; + @JsonSetter(value = "cert", nulls = Nulls.SKIP) + public Builder cert(Optional cert) { + this.cert = cert; + return this; + } + + public Builder cert(String cert) { + this.cert = Optional.ofNullable(cert); + return this; + } + + @JsonSetter(value = "decryptionKey", nulls = Nulls.SKIP) + public Builder decryptionKey(Optional decryptionKey) { + this.decryptionKey = decryptionKey; + return this; + } + + public Builder decryptionKey(String decryptionKey) { + this.decryptionKey = Optional.ofNullable(decryptionKey); + return this; + } + + @JsonSetter(value = "digestAlgorithm", nulls = Nulls.SKIP) + public Builder digestAlgorithm(Optional digestAlgorithm) { + this.digestAlgorithm = digestAlgorithm; + return this; + } + + public Builder digestAlgorithm(ConnectionDigestAlgorithmEnumSaml digestAlgorithm) { + this.digestAlgorithm = Optional.ofNullable(digestAlgorithm); + return this; + } + + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public Builder entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + public Builder entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + @JsonSetter(value = "idpinitiated", nulls = Nulls.SKIP) + public Builder idpinitiated(Optional idpinitiated) { + this.idpinitiated = idpinitiated; + return this; + } + + public Builder idpinitiated(ConnectionOptionsIdpinitiatedSaml idpinitiated) { + this.idpinitiated = Optional.ofNullable(idpinitiated); + return this; + } + + @JsonSetter(value = "protocolBinding", nulls = Nulls.SKIP) + public Builder protocolBinding(Optional protocolBinding) { + this.protocolBinding = protocolBinding; + return this; + } + + public Builder protocolBinding(ConnectionProtocolBindingEnumSaml protocolBinding) { + this.protocolBinding = Optional.ofNullable(protocolBinding); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes(Optional setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes(ConnectionSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + @JsonSetter(value = "signSAMLRequest", nulls = Nulls.SKIP) + public Builder signSamlRequest(Optional signSamlRequest) { + this.signSamlRequest = signSamlRequest; + return this; + } + + public Builder signSamlRequest(Boolean signSamlRequest) { + this.signSamlRequest = Optional.ofNullable(signSamlRequest); + return this; + } + + @JsonSetter(value = "signatureAlgorithm", nulls = Nulls.SKIP) + public Builder signatureAlgorithm(Optional signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + return this; + } + + public Builder signatureAlgorithm(ConnectionSignatureAlgorithmEnumSaml signatureAlgorithm) { + this.signatureAlgorithm = Optional.ofNullable(signatureAlgorithm); + return this; + } + + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + 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 = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; return this; } - public Builder cert(String cert) { - this.cert = Optional.ofNullable(cert); + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); return this; } @@ -551,17 +757,6 @@ public Builder debug(Boolean debug) { return this; } - @JsonSetter(value = "decryptionKey", nulls = Nulls.SKIP) - public Builder decryptionKey(Optional decryptionKey) { - this.decryptionKey = decryptionKey; - return this; - } - - public Builder decryptionKey(String decryptionKey) { - this.decryptionKey = Optional.ofNullable(decryptionKey); - return this; - } - @JsonSetter(value = "deflate", nulls = Nulls.SKIP) public Builder deflate(Optional deflate) { this.deflate = deflate; @@ -584,17 +779,6 @@ public Builder destinationUrl(String destinationUrl) { return this; } - @JsonSetter(value = "digestAlgorithm", nulls = Nulls.SKIP) - public Builder digestAlgorithm(Optional digestAlgorithm) { - this.digestAlgorithm = digestAlgorithm; - return this; - } - - public Builder digestAlgorithm(ConnectionDigestAlgorithmEnumSaml digestAlgorithm) { - this.digestAlgorithm = Optional.ofNullable(digestAlgorithm); - return this; - } - /** *

When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled).

*/ @@ -609,28 +793,6 @@ public Builder disableSignout(Boolean disableSignout) { return this; } - @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) - public Builder domainAliases(Optional> domainAliases) { - this.domainAliases = domainAliases; - return this; - } - - public Builder domainAliases(List domainAliases) { - this.domainAliases = Optional.ofNullable(domainAliases); - return this; - } - - @JsonSetter(value = "entityId", nulls = Nulls.SKIP) - public Builder entityId(Optional entityId) { - this.entityId = entityId; - return this; - } - - public Builder entityId(String entityId) { - this.entityId = Optional.ofNullable(entityId); - return this; - } - @JsonSetter(value = "fieldsMap", nulls = Nulls.SKIP) public Builder fieldsMap(Optional> fieldsMap) { this.fieldsMap = fieldsMap; @@ -642,9 +804,6 @@ public Builder fieldsMap(Map fieldsMap) { return this; } - /** - *

Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub.

- */ @JsonSetter(value = "global_token_revocation_jwt_iss", nulls = Nulls.SKIP) public Builder globalTokenRevocationJwtIss(Optional globalTokenRevocationJwtIss) { this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; @@ -656,9 +815,6 @@ public Builder globalTokenRevocationJwtIss(String globalTokenRevocationJwtIss) { return this; } - /** - *

Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss.

- */ @JsonSetter(value = "global_token_revocation_jwt_sub", nulls = Nulls.SKIP) public Builder globalTokenRevocationJwtSub(Optional globalTokenRevocationJwtSub) { this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; @@ -670,28 +826,6 @@ public Builder globalTokenRevocationJwtSub(String globalTokenRevocationJwtSub) { return this; } - @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) - public Builder iconUrl(Optional iconUrl) { - this.iconUrl = iconUrl; - return this; - } - - public Builder iconUrl(String iconUrl) { - this.iconUrl = Optional.ofNullable(iconUrl); - return this; - } - - @JsonSetter(value = "idpinitiated", nulls = Nulls.SKIP) - public Builder idpinitiated(Optional idpinitiated) { - this.idpinitiated = idpinitiated; - return this; - } - - public Builder idpinitiated(ConnectionOptionsIdpinitiatedSaml idpinitiated) { - this.idpinitiated = Optional.ofNullable(idpinitiated); - return this; - } - @JsonSetter(value = "metadataUrl", nulls = Nulls.SKIP) public Builder metadataUrl(Optional metadataUrl) { this.metadataUrl = metadataUrl; @@ -714,28 +848,6 @@ public Builder metadataXml(String metadataXml) { 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 = "protocolBinding", nulls = Nulls.SKIP) - public Builder protocolBinding(Optional protocolBinding) { - this.protocolBinding = protocolBinding; - return this; - } - - public Builder protocolBinding(ConnectionProtocolBindingEnumSaml protocolBinding) { - this.protocolBinding = Optional.ofNullable(protocolBinding); - return this; - } - @JsonSetter(value = "recipientUrl", nulls = Nulls.SKIP) public Builder recipientUrl(Optional recipientUrl) { this.recipientUrl = recipientUrl; @@ -758,61 +870,6 @@ public Builder requestTemplate(String requestTemplate) { return this; } - @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) - public Builder setUserRootAttributes(Optional setUserRootAttributes) { - this.setUserRootAttributes = setUserRootAttributes; - return this; - } - - public Builder setUserRootAttributes(ConnectionSetUserRootAttributesEnum setUserRootAttributes) { - this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); - return this; - } - - @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) - public Builder signInEndpoint(Optional signInEndpoint) { - this.signInEndpoint = signInEndpoint; - return this; - } - - public Builder signInEndpoint(String signInEndpoint) { - this.signInEndpoint = Optional.ofNullable(signInEndpoint); - return this; - } - - @JsonSetter(value = "signOutEndpoint", nulls = Nulls.SKIP) - public Builder signOutEndpoint(Optional signOutEndpoint) { - this.signOutEndpoint = signOutEndpoint; - return this; - } - - public Builder signOutEndpoint(String signOutEndpoint) { - this.signOutEndpoint = Optional.ofNullable(signOutEndpoint); - return this; - } - - @JsonSetter(value = "signSAMLRequest", nulls = Nulls.SKIP) - public Builder signSamlRequest(Optional signSamlRequest) { - this.signSamlRequest = signSamlRequest; - return this; - } - - public Builder signSamlRequest(Boolean signSamlRequest) { - this.signSamlRequest = Optional.ofNullable(signSamlRequest); - return this; - } - - @JsonSetter(value = "signatureAlgorithm", nulls = Nulls.SKIP) - public Builder signatureAlgorithm(Optional signatureAlgorithm) { - this.signatureAlgorithm = signatureAlgorithm; - return this; - } - - public Builder signatureAlgorithm(ConnectionSignatureAlgorithmEnumSaml signatureAlgorithm) { - this.signatureAlgorithm = Optional.ofNullable(signatureAlgorithm); - return this; - } - @JsonSetter(value = "signingCert", nulls = Nulls.SKIP) public Builder signingCert(Optional signingCert) { this.signingCert = signingCert; @@ -835,67 +892,14 @@ public Builder signingKey(ConnectionSigningKeySaml signingKey) { return this; } - @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) - public Builder tenantDomain(Optional tenantDomain) { - this.tenantDomain = tenantDomain; - return this; - } - - public Builder tenantDomain(String tenantDomain) { - this.tenantDomain = Optional.ofNullable(tenantDomain); - return this; - } - - /** - *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

- */ - @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) - public Builder thumbprints(Optional> thumbprints) { - this.thumbprints = thumbprints; - return this; - } - - public Builder thumbprints(List thumbprints) { - this.thumbprints = Optional.ofNullable(thumbprints); - 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(); - } + @JsonSetter(value = "signOutEndpoint", nulls = Nulls.SKIP) + public Builder signOutEndpoint(Optional signOutEndpoint) { + this.signOutEndpoint = signOutEndpoint; 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()); - } + public Builder signOutEndpoint(String signOutEndpoint) { + this.signOutEndpoint = Optional.ofNullable(signOutEndpoint); return this; } @@ -913,35 +917,35 @@ public Builder userIdAttribute(String userIdAttribute) { public ConnectionOptionsSaml build() { return new ConnectionOptionsSaml( cert, - debug, decryptionKey, - deflate, - destinationUrl, digestAlgorithm, - disableSignout, domainAliases, entityId, - fieldsMap, - globalTokenRevocationJwtIss, - globalTokenRevocationJwtSub, iconUrl, idpinitiated, - metadataUrl, - metadataXml, - nonPersistentAttrs, protocolBinding, - recipientUrl, - requestTemplate, setUserRootAttributes, signInEndpoint, - signOutEndpoint, signSamlRequest, signatureAlgorithm, - signingCert, - signingKey, tenantDomain, thumbprints, upstreamParams, + nonPersistentAttrs, + debug, + deflate, + destinationUrl, + disableSignout, + fieldsMap, + globalTokenRevocationJwtIss, + globalTokenRevocationJwtSub, + metadataUrl, + metadataXml, + recipientUrl, + requestTemplate, + signingCert, + signingKey, + signOutEndpoint, userIdAttribute, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSms.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSms.java new file mode 100644 index 000000000..baaf180d3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSms.java @@ -0,0 +1,513 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.NullableNonemptyFilter; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.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 = ConnectionOptionsSms.Builder.class) +public final class ConnectionOptionsSms implements IConnectionOptionsCommon { + private final Optional> nonPersistentAttrs; + + private final Optional bruteForceProtection; + + private final Optional disableSignup; + + private final Optional forwardReqInfo; + + private final Optional from; + + private final OptionalNullable gatewayAuthentication; + + private final Optional gatewayUrl; + + private final Optional messagingServiceSid; + + private final Optional name; + + private final Optional provider; + + private final Optional syntax; + + private final Optional template; + + private final Optional totp; + + private final Optional twilioSid; + + private final Optional twilioToken; + + private final Map additionalProperties; + + private ConnectionOptionsSms( + Optional> nonPersistentAttrs, + Optional bruteForceProtection, + Optional disableSignup, + Optional forwardReqInfo, + Optional from, + OptionalNullable gatewayAuthentication, + Optional gatewayUrl, + Optional messagingServiceSid, + Optional name, + Optional provider, + Optional syntax, + Optional template, + Optional totp, + Optional twilioSid, + Optional twilioToken, + Map additionalProperties) { + this.nonPersistentAttrs = nonPersistentAttrs; + this.bruteForceProtection = bruteForceProtection; + this.disableSignup = disableSignup; + this.forwardReqInfo = forwardReqInfo; + this.from = from; + this.gatewayAuthentication = gatewayAuthentication; + this.gatewayUrl = gatewayUrl; + this.messagingServiceSid = messagingServiceSid; + this.name = name; + this.provider = provider; + this.syntax = syntax; + this.template = template; + this.totp = totp; + this.twilioSid = twilioSid; + this.twilioToken = twilioToken; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("non_persistent_attrs") + @java.lang.Override + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return Whether brute force protection is enabled + */ + @JsonProperty("brute_force_protection") + public Optional getBruteForceProtection() { + return bruteForceProtection; + } + + @JsonProperty("disable_signup") + public Optional getDisableSignup() { + return disableSignup; + } + + @JsonProperty("forward_req_info") + public Optional getForwardReqInfo() { + return forwardReqInfo; + } + + @JsonProperty("from") + public Optional getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("gateway_authentication") + public OptionalNullable getGatewayAuthentication() { + if (gatewayAuthentication == null) { + return OptionalNullable.absent(); + } + return gatewayAuthentication; + } + + @JsonProperty("gateway_url") + public Optional getGatewayUrl() { + return gatewayUrl; + } + + @JsonProperty("messaging_service_sid") + public Optional getMessagingServiceSid() { + return messagingServiceSid; + } + + /** + * @return Connection name + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + @JsonProperty("provider") + public Optional getProvider() { + return provider; + } + + @JsonProperty("syntax") + public Optional getSyntax() { + return syntax; + } + + @JsonProperty("template") + public Optional getTemplate() { + return template; + } + + @JsonProperty("totp") + public Optional getTotp() { + return totp; + } + + @JsonProperty("twilio_sid") + public Optional getTwilioSid() { + return twilioSid; + } + + @JsonProperty("twilio_token") + public Optional getTwilioToken() { + return twilioToken; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("gateway_authentication") + private OptionalNullable _getGatewayAuthentication() { + return gatewayAuthentication; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionOptionsSms && equalTo((ConnectionOptionsSms) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionOptionsSms other) { + return nonPersistentAttrs.equals(other.nonPersistentAttrs) + && bruteForceProtection.equals(other.bruteForceProtection) + && disableSignup.equals(other.disableSignup) + && forwardReqInfo.equals(other.forwardReqInfo) + && from.equals(other.from) + && gatewayAuthentication.equals(other.gatewayAuthentication) + && gatewayUrl.equals(other.gatewayUrl) + && messagingServiceSid.equals(other.messagingServiceSid) + && name.equals(other.name) + && provider.equals(other.provider) + && syntax.equals(other.syntax) + && template.equals(other.template) + && totp.equals(other.totp) + && twilioSid.equals(other.twilioSid) + && twilioToken.equals(other.twilioToken); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.nonPersistentAttrs, + this.bruteForceProtection, + this.disableSignup, + this.forwardReqInfo, + this.from, + this.gatewayAuthentication, + this.gatewayUrl, + this.messagingServiceSid, + this.name, + this.provider, + this.syntax, + this.template, + this.totp, + this.twilioSid, + this.twilioToken); + } + + @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> nonPersistentAttrs = Optional.empty(); + + private Optional bruteForceProtection = Optional.empty(); + + private Optional disableSignup = Optional.empty(); + + private Optional forwardReqInfo = Optional.empty(); + + private Optional from = Optional.empty(); + + private OptionalNullable gatewayAuthentication = OptionalNullable.absent(); + + private Optional gatewayUrl = Optional.empty(); + + private Optional messagingServiceSid = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional provider = Optional.empty(); + + private Optional syntax = Optional.empty(); + + private Optional template = Optional.empty(); + + private Optional totp = Optional.empty(); + + private Optional twilioSid = Optional.empty(); + + private Optional twilioToken = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionOptionsSms other) { + nonPersistentAttrs(other.getNonPersistentAttrs()); + bruteForceProtection(other.getBruteForceProtection()); + disableSignup(other.getDisableSignup()); + forwardReqInfo(other.getForwardReqInfo()); + from(other.getFrom()); + gatewayAuthentication(other.getGatewayAuthentication()); + gatewayUrl(other.getGatewayUrl()); + messagingServiceSid(other.getMessagingServiceSid()); + name(other.getName()); + provider(other.getProvider()); + syntax(other.getSyntax()); + template(other.getTemplate()); + totp(other.getTotp()); + twilioSid(other.getTwilioSid()); + twilioToken(other.getTwilioToken()); + 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; + } + + /** + *

Whether brute force protection is enabled

+ */ + @JsonSetter(value = "brute_force_protection", nulls = Nulls.SKIP) + public Builder bruteForceProtection(Optional bruteForceProtection) { + this.bruteForceProtection = bruteForceProtection; + return this; + } + + public Builder bruteForceProtection(Boolean bruteForceProtection) { + this.bruteForceProtection = Optional.ofNullable(bruteForceProtection); + return this; + } + + @JsonSetter(value = "disable_signup", nulls = Nulls.SKIP) + public Builder disableSignup(Optional disableSignup) { + this.disableSignup = disableSignup; + return this; + } + + public Builder disableSignup(Boolean disableSignup) { + this.disableSignup = Optional.ofNullable(disableSignup); + return this; + } + + @JsonSetter(value = "forward_req_info", nulls = Nulls.SKIP) + public Builder forwardReqInfo(Optional forwardReqInfo) { + this.forwardReqInfo = forwardReqInfo; + return this; + } + + public Builder forwardReqInfo(Boolean forwardReqInfo) { + this.forwardReqInfo = Optional.ofNullable(forwardReqInfo); + return this; + } + + @JsonSetter(value = "from", nulls = Nulls.SKIP) + public Builder from(Optional from) { + this.from = from; + return this; + } + + public Builder from(String from) { + this.from = Optional.ofNullable(from); + return this; + } + + @JsonSetter(value = "gateway_authentication", nulls = Nulls.SKIP) + public Builder gatewayAuthentication( + @Nullable OptionalNullable gatewayAuthentication) { + this.gatewayAuthentication = gatewayAuthentication; + return this; + } + + public Builder gatewayAuthentication(ConnectionGatewayAuthenticationSms gatewayAuthentication) { + this.gatewayAuthentication = OptionalNullable.of(gatewayAuthentication); + return this; + } + + public Builder gatewayAuthentication(Optional gatewayAuthentication) { + if (gatewayAuthentication.isPresent()) { + this.gatewayAuthentication = OptionalNullable.of(gatewayAuthentication.get()); + } else { + this.gatewayAuthentication = OptionalNullable.absent(); + } + return this; + } + + public Builder gatewayAuthentication( + com.auth0.client.mgmt.core.Nullable gatewayAuthentication) { + if (gatewayAuthentication.isNull()) { + this.gatewayAuthentication = OptionalNullable.ofNull(); + } else if (gatewayAuthentication.isEmpty()) { + this.gatewayAuthentication = OptionalNullable.absent(); + } else { + this.gatewayAuthentication = OptionalNullable.of(gatewayAuthentication.get()); + } + return this; + } + + @JsonSetter(value = "gateway_url", nulls = Nulls.SKIP) + public Builder gatewayUrl(Optional gatewayUrl) { + this.gatewayUrl = gatewayUrl; + return this; + } + + public Builder gatewayUrl(String gatewayUrl) { + this.gatewayUrl = Optional.ofNullable(gatewayUrl); + return this; + } + + @JsonSetter(value = "messaging_service_sid", nulls = Nulls.SKIP) + public Builder messagingServiceSid(Optional messagingServiceSid) { + this.messagingServiceSid = messagingServiceSid; + return this; + } + + public Builder messagingServiceSid(String messagingServiceSid) { + this.messagingServiceSid = Optional.ofNullable(messagingServiceSid); + return this; + } + + /** + *

Connection name

+ */ + @JsonSetter(value = "name", nulls = Nulls.SKIP) + public Builder name(Optional name) { + this.name = name; + return this; + } + + public Builder name(String name) { + this.name = Optional.ofNullable(name); + return this; + } + + @JsonSetter(value = "provider", nulls = Nulls.SKIP) + public Builder provider(Optional provider) { + this.provider = provider; + return this; + } + + public Builder provider(ConnectionProviderEnumSms provider) { + this.provider = Optional.ofNullable(provider); + return this; + } + + @JsonSetter(value = "syntax", nulls = Nulls.SKIP) + public Builder syntax(Optional syntax) { + this.syntax = syntax; + return this; + } + + public Builder syntax(ConnectionTemplateSyntaxEnumSms syntax) { + this.syntax = Optional.ofNullable(syntax); + return this; + } + + @JsonSetter(value = "template", nulls = Nulls.SKIP) + public Builder template(Optional template) { + this.template = template; + return this; + } + + public Builder template(String template) { + this.template = Optional.ofNullable(template); + return this; + } + + @JsonSetter(value = "totp", nulls = Nulls.SKIP) + public Builder totp(Optional totp) { + this.totp = totp; + return this; + } + + public Builder totp(ConnectionTotpSms totp) { + this.totp = Optional.ofNullable(totp); + return this; + } + + @JsonSetter(value = "twilio_sid", nulls = Nulls.SKIP) + public Builder twilioSid(Optional twilioSid) { + this.twilioSid = twilioSid; + return this; + } + + public Builder twilioSid(String twilioSid) { + this.twilioSid = Optional.ofNullable(twilioSid); + return this; + } + + @JsonSetter(value = "twilio_token", nulls = Nulls.SKIP) + public Builder twilioToken(Optional twilioToken) { + this.twilioToken = twilioToken; + return this; + } + + public Builder twilioToken(String twilioToken) { + this.twilioToken = Optional.ofNullable(twilioToken); + return this; + } + + public ConnectionOptionsSms build() { + return new ConnectionOptionsSms( + nonPersistentAttrs, + bruteForceProtection, + disableSignup, + forwardReqInfo, + from, + gatewayAuthentication, + gatewayUrl, + messagingServiceSid, + name, + provider, + syntax, + template, + totp, + twilioSid, + twilioToken, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPhoneOtpAuthenticationMethod.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPhoneOtpAuthenticationMethod.java new file mode 100644 index 000000000..34048fa9d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPhoneOtpAuthenticationMethod.java @@ -0,0 +1,103 @@ +/** + * 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 = ConnectionPhoneOtpAuthenticationMethod.Builder.class) +public final class ConnectionPhoneOtpAuthenticationMethod { + private final Optional enabled; + + private final Map additionalProperties; + + private ConnectionPhoneOtpAuthenticationMethod( + Optional enabled, Map additionalProperties) { + this.enabled = enabled; + this.additionalProperties = additionalProperties; + } + + /** + * @return Determines whether phone OTP is enabled + */ + @JsonProperty("enabled") + public Optional getEnabled() { + return enabled; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionPhoneOtpAuthenticationMethod + && equalTo((ConnectionPhoneOtpAuthenticationMethod) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionPhoneOtpAuthenticationMethod other) { + return enabled.equals(other.enabled); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.enabled); + } + + @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 enabled = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionPhoneOtpAuthenticationMethod other) { + enabled(other.getEnabled()); + return this; + } + + /** + *

Determines whether phone OTP is enabled

+ */ + @JsonSetter(value = "enabled", nulls = Nulls.SKIP) + public Builder enabled(Optional enabled) { + this.enabled = enabled; + return this; + } + + public Builder enabled(Boolean enabled) { + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public ConnectionPhoneOtpAuthenticationMethod build() { + return new ConnectionPhoneOtpAuthenticationMethod(enabled, additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProviderEnumSms.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProviderEnumSms.java new file mode 100644 index 000000000..946b7c406 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProviderEnumSms.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 ConnectionProviderEnumSms { + public static final ConnectionProviderEnumSms SMS_GATEWAY = + new ConnectionProviderEnumSms(Value.SMS_GATEWAY, "sms_gateway"); + + public static final ConnectionProviderEnumSms TWILIO = new ConnectionProviderEnumSms(Value.TWILIO, "twilio"); + + private final Value value; + + private final String string; + + ConnectionProviderEnumSms(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 ConnectionProviderEnumSms + && this.string.equals(((ConnectionProviderEnumSms) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SMS_GATEWAY: + return visitor.visitSmsGateway(); + case TWILIO: + return visitor.visitTwilio(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static ConnectionProviderEnumSms valueOf(String value) { + switch (value) { + case "sms_gateway": + return SMS_GATEWAY; + case "twilio": + return TWILIO; + default: + return new ConnectionProviderEnumSms(Value.UNKNOWN, value); + } + } + + public enum Value { + SMS_GATEWAY, + + TWILIO, + + UNKNOWN + } + + public interface Visitor { + T visitSmsGateway(); + + T visitTwilio(); + + T visitUnknown(String unknownType); + } +} 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 97a21b378..e1296e11c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseCommon.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseCommon.java @@ -39,10 +39,6 @@ public final class ConnectionResponseCommon private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Map additionalProperties; private ConnectionResponseCommon( @@ -54,8 +50,6 @@ private ConnectionResponseCommon( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Map additionalProperties) { this.id = id; this.name = name; @@ -65,8 +59,6 @@ private ConnectionResponseCommon( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -118,18 +110,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -149,9 +129,7 @@ private boolean equalTo(ConnectionResponseCommon other) { && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) - && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton); + && metadata.equals(other.metadata); } @java.lang.Override @@ -164,9 +142,7 @@ public int hashCode() { this.displayName, this.enabledClients, this.isDomainConnection, - this.metadata, - this.realms, - this.showAsButton); + this.metadata); } @java.lang.Override @@ -196,10 +172,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -214,8 +186,6 @@ public Builder from(ConnectionResponseCommon other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); return this; } @@ -307,28 +277,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - public ConnectionResponseCommon build() { return new ConnectionResponseCommon( id, @@ -339,8 +287,6 @@ public ConnectionResponseCommon build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, additionalProperties); } } 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 5787bb9df..b4e7132a4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAd.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentAd private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentAd( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentAd( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "ad"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentAd other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentAd other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentAd build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 5b45bce97..ad7c40970 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAdfs.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAdfs.java @@ -39,12 +39,10 @@ public final class ConnectionResponseContentAdfs private final Optional>> metadata; - private final Optional> realms; + private final Optional options; private final Optional showAsButton; - private final Optional> options; - private final Map additionalProperties; private ConnectionResponseContentAdfs( @@ -56,9 +54,8 @@ private ConnectionResponseContentAdfs( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, + Optional options, Optional showAsButton, - Optional> options, Map additionalProperties) { this.id = id; this.name = name; @@ -68,9 +65,8 @@ private ConnectionResponseContentAdfs( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -122,28 +118,21 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "adfs"; } @JsonProperty("options") - public Optional> getOptions() { + public Optional getOptions() { return options; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -164,9 +153,8 @@ private boolean equalTo(ConnectionResponseContentAdfs other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -180,9 +168,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.showAsButton); } @java.lang.Override @@ -212,12 +199,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional options = Optional.empty(); private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -232,9 +217,8 @@ public Builder from(ConnectionResponseContentAdfs other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + showAsButton(other.getShowAsButton()); return this; } @@ -326,14 +310,14 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(ConnectionOptionsAdfs options) { + this.options = Optional.ofNullable(options); return this; } @@ -348,17 +332,6 @@ public Builder showAsButton(Boolean showAsButton) { return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional> options) { - this.options = options; - return this; - } - - public Builder options(Map options) { - this.options = Optional.ofNullable(options); - return this; - } - public ConnectionResponseContentAdfs build() { return new ConnectionResponseContentAdfs( id, @@ -369,9 +342,8 @@ public ConnectionResponseContentAdfs build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + showAsButton, additionalProperties); } } 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 b61c5612c..f2fb3cc2e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAmazon.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAmazon.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentAmazon private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentAmazon( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentAmazon( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "amazon"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentAmazon other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentAmazon other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentAmazon build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 7d30d17ac..dda54e606 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAol.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAol.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentAol private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentAol( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentAol( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "aol"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentAol other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentAol other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentAol build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 abc08776e..d15f61160 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentApple.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentApple.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentApple private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentApple( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentApple( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "apple"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentApple other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentApple other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentApple build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 b172d2467..a49d05496 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0.java @@ -39,12 +39,10 @@ public final class ConnectionResponseContentAuth0 private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; + private final Optional> realms; + private final Map additionalProperties; private ConnectionResponseContentAuth0( @@ -56,9 +54,8 @@ private ConnectionResponseContentAuth0( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, + Optional> realms, Map additionalProperties) { this.id = id; this.name = name; @@ -68,9 +65,8 @@ private ConnectionResponseContentAuth0( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.realms = realms; this.additionalProperties = additionalProperties; } @@ -122,18 +118,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "auth0"; @@ -144,6 +128,11 @@ public Optional getOptions() { return options; } + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -164,9 +153,8 @@ private boolean equalTo(ConnectionResponseContentAuth0 other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && realms.equals(other.realms); } @java.lang.Override @@ -180,9 +168,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.realms); } @java.lang.Override @@ -212,12 +199,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); + private Optional> realms = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -232,9 +217,8 @@ public Builder from(ConnectionResponseContentAuth0 other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + realms(other.getRealms()); return this; } @@ -326,36 +310,25 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; return this; } - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); + public Builder options(ConnectionOptionsAuth0 options) { + this.options = Optional.ofNullable(options); return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional options) { - this.options = options; + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public Builder realms(Optional> realms) { + this.realms = realms; return this; } - public Builder options(ConnectionOptionsAuth0 options) { - this.options = Optional.ofNullable(options); + public Builder realms(List realms) { + this.realms = Optional.ofNullable(realms); return this; } @@ -369,9 +342,8 @@ public ConnectionResponseContentAuth0 build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + realms, additionalProperties); } } 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 2ce983145..9528beb51 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0Oidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0Oidc.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentAuth0Oidc private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentAuth0Oidc( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentAuth0Oidc( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "auth0-oidc"; @@ -165,8 +145,6 @@ private boolean equalTo(ConnectionResponseContentAuth0Oidc other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -181,8 +159,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -213,10 +189,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -233,8 +205,6 @@ public Builder from(ConnectionResponseContentAuth0Oidc other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -327,28 +297,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -370,8 +318,6 @@ public ConnectionResponseContentAuth0Oidc build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 fc32d0e8c..6c25f3045 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAzureAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAzureAd.java @@ -39,16 +39,14 @@ public final class ConnectionResponseContentAzureAd private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Optional provisioningTicket; private final Optional provisioningTicketUrl; + private final Optional showAsButton; + private final Optional strategyVersion; private final Map additionalProperties; @@ -62,11 +60,10 @@ private ConnectionResponseContentAzureAd( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Optional provisioningTicket, Optional provisioningTicketUrl, + Optional showAsButton, Optional strategyVersion, Map additionalProperties) { this.id = id; @@ -77,11 +74,10 @@ private ConnectionResponseContentAzureAd( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.provisioningTicket = provisioningTicket; this.provisioningTicketUrl = provisioningTicketUrl; + this.showAsButton = showAsButton; this.strategyVersion = strategyVersion; this.additionalProperties = additionalProperties; } @@ -134,18 +130,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "waad"; @@ -166,6 +150,11 @@ public Optional getProvisioningTicketUrl() { return provisioningTicketUrl; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @JsonProperty("strategy_version") public Optional getStrategyVersion() { return strategyVersion; @@ -191,11 +180,10 @@ private boolean equalTo(ConnectionResponseContentAzureAd other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options) && provisioningTicket.equals(other.provisioningTicket) && provisioningTicketUrl.equals(other.provisioningTicketUrl) + && showAsButton.equals(other.showAsButton) && strategyVersion.equals(other.strategyVersion); } @@ -210,11 +198,10 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options, this.provisioningTicket, this.provisioningTicketUrl, + this.showAsButton, this.strategyVersion); } @@ -245,16 +232,14 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); private Optional provisioningTicket = Optional.empty(); private Optional provisioningTicketUrl = Optional.empty(); + private Optional showAsButton = Optional.empty(); + private Optional strategyVersion = Optional.empty(); @JsonAnySetter @@ -271,11 +256,10 @@ public Builder from(ConnectionResponseContentAzureAd other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); provisioningTicket(other.getProvisioningTicket()); provisioningTicketUrl(other.getProvisioningTicketUrl()); + showAsButton(other.getShowAsButton()); strategyVersion(other.getStrategyVersion()); return this; } @@ -368,28 +352,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -423,6 +385,17 @@ public Builder provisioningTicketUrl(String provisioningTicketUrl) { return this; } + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public Builder showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + public Builder showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + @JsonSetter(value = "strategy_version", nulls = Nulls.SKIP) public Builder strategyVersion(Optional strategyVersion) { this.strategyVersion = strategyVersion; @@ -444,11 +417,10 @@ public ConnectionResponseContentAzureAd build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, provisioningTicket, provisioningTicketUrl, + showAsButton, strategyVersion, additionalProperties); } 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 3d79db815..f4fe98f12 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBaidu.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBaidu.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentBaidu private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentBaidu( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentBaidu( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "baidu"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentBaidu other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentBaidu other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentBaidu build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 edc0095d2..0444e203b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitbucket.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitbucket.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentBitbucket private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentBitbucket( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentBitbucket( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "bitbucket"; @@ -165,8 +145,6 @@ private boolean equalTo(ConnectionResponseContentBitbucket other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -181,8 +159,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -213,10 +189,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -233,8 +205,6 @@ public Builder from(ConnectionResponseContentBitbucket other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -327,28 +297,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -370,8 +318,6 @@ public ConnectionResponseContentBitbucket build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 2b91fbe91..53152f0aa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitly.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitly.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentBitly private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentBitly( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentBitly( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "bitly"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentBitly other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentBitly other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentBitly build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 0f5606417..66829785a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBox.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentBox private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentBox( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentBox( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "box"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentBox other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentBox other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentBox build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 bd99aa343..d70f7dafa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentCustom.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentCustom private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentCustom( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentCustom( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "custom"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentCustom other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentCustom other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentCustom build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 f0cfd0e0b..9ca0ce947 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDaccount.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDaccount.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentDaccount private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentDaccount( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentDaccount( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "daccount"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentDaccount other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentDaccount other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentDaccount build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 59660dd16..819b271d0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDropbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDropbox.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentDropbox private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentDropbox( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentDropbox( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "dropbox"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentDropbox other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentDropbox other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentDropbox build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 6793b5cd5..5089e0c97 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDwolla.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDwolla.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentDwolla private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentDwolla( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentDwolla( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "dwolla"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentDwolla other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentDwolla other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentDwolla build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 f74e21c23..4260bae89 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEmail.java @@ -39,11 +39,7 @@ public final class ConnectionResponseContentEmail private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - - private final Optional> options; + private final Optional options; private final Map additionalProperties; @@ -56,9 +52,7 @@ private ConnectionResponseContentEmail( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, - Optional> options, + Optional options, Map additionalProperties) { this.id = id; this.name = name; @@ -68,8 +62,6 @@ private ConnectionResponseContentEmail( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,25 +114,13 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "email"; } @JsonProperty("options") - public Optional> getOptions() { + public Optional getOptions() { return options; } @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentEmail other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,11 +188,7 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - - private Optional> options = Optional.empty(); + private Optional options = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentEmail other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,35 +296,13 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional> options) { + public Builder options(Optional options) { this.options = options; return this; } - public Builder options(Map options) { + public Builder options(ConnectionOptionsEmail options) { this.options = Optional.ofNullable(options); return this; } @@ -369,8 +317,6 @@ public ConnectionResponseContentEmail build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 c24cb3a73..8fcda9cea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernote.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernote.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentEvernote private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentEvernote( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentEvernote( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "evernote"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentEvernote other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentEvernote other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentEvernote build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 721b7da40..a3aeb6dc0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernoteSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernoteSandbox.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentEvernoteSandbox private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentEvernoteSandbox( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentEvernoteSandbox( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "evernote-sandbox"; @@ -165,8 +145,6 @@ private boolean equalTo(ConnectionResponseContentEvernoteSandbox other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -181,8 +159,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -213,10 +189,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -233,8 +205,6 @@ public Builder from(ConnectionResponseContentEvernoteSandbox other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -327,28 +297,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -370,8 +318,6 @@ public ConnectionResponseContentEvernoteSandbox build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 cbeba76ac..1a088c943 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentExact.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentExact.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentExact private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentExact( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentExact( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "exact"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentExact other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentExact other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentExact build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 625b2d388..8011cbb2f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFacebook.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFacebook.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentFacebook private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentFacebook( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentFacebook( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "facebook"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentFacebook other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentFacebook other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentFacebook build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 4a5afcfac..780f9e3ea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFitbit.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFitbit.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentFitbit private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentFitbit( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentFitbit( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "fitbit"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentFitbit other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentFitbit other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentFitbit build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 5f07a2e1e..1b47841aa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFlickr.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFlickr.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentFlickr private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentFlickr( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentFlickr( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "flickr"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentFlickr other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentFlickr other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentFlickr build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 584b6efa0..2cf02064f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGitHub.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGitHub.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentGitHub private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentGitHub( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentGitHub( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "github"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentGitHub other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentGitHub other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentGitHub build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 f92b4eb34..406e1496b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleApps.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleApps.java @@ -39,12 +39,10 @@ public final class ConnectionResponseContentGoogleApps private final Optional>> metadata; - private final Optional> realms; + private final Optional options; private final Optional showAsButton; - private final Optional options; - private final Map additionalProperties; private ConnectionResponseContentGoogleApps( @@ -56,9 +54,8 @@ private ConnectionResponseContentGoogleApps( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, + Optional showAsButton, Map additionalProperties) { this.id = id; this.name = name; @@ -68,9 +65,8 @@ private ConnectionResponseContentGoogleApps( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -122,18 +118,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "google-apps"; @@ -144,6 +128,11 @@ public Optional getOptions() { return options; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -165,9 +154,8 @@ private boolean equalTo(ConnectionResponseContentGoogleApps other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -181,9 +169,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.showAsButton); } @java.lang.Override @@ -213,12 +200,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional options = Optional.empty(); private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -233,9 +218,8 @@ public Builder from(ConnectionResponseContentGoogleApps other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + showAsButton(other.getShowAsButton()); return this; } @@ -327,14 +311,14 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(ConnectionOptionsGoogleApps options) { + this.options = Optional.ofNullable(options); return this; } @@ -349,17 +333,6 @@ public Builder showAsButton(Boolean showAsButton) { return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional options) { - this.options = options; - return this; - } - - public Builder options(ConnectionOptionsGoogleApps options) { - this.options = Optional.ofNullable(options); - return this; - } - public ConnectionResponseContentGoogleApps build() { return new ConnectionResponseContentGoogleApps( id, @@ -370,9 +343,8 @@ public ConnectionResponseContentGoogleApps build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + showAsButton, additionalProperties); } } 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 25f745441..3eabcaa73 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleOAuth2.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentGoogleOAuth2 private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentGoogleOAuth2( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentGoogleOAuth2( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "google-oauth2"; @@ -165,8 +145,6 @@ private boolean equalTo(ConnectionResponseContentGoogleOAuth2 other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -181,8 +159,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -213,10 +189,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -233,8 +205,6 @@ public Builder from(ConnectionResponseContentGoogleOAuth2 other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -327,28 +297,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -370,8 +318,6 @@ public ConnectionResponseContentGoogleOAuth2 build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 c8bbfb85d..c2b578148 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentInstagram.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentInstagram.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentInstagram private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentInstagram( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentInstagram( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "instagram"; @@ -165,8 +145,6 @@ private boolean equalTo(ConnectionResponseContentInstagram other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -181,8 +159,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -213,10 +189,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -233,8 +205,6 @@ public Builder from(ConnectionResponseContentInstagram other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -327,28 +297,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -370,8 +318,6 @@ public ConnectionResponseContentInstagram build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 a8cb11a20..9a8b2a7e6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentIp.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentIp.java @@ -39,12 +39,10 @@ public final class ConnectionResponseContentIp private final Optional>> metadata; - private final Optional> realms; + private final Optional> options; private final Optional showAsButton; - private final Optional> options; - private final Map additionalProperties; private ConnectionResponseContentIp( @@ -56,9 +54,8 @@ private ConnectionResponseContentIp( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, + Optional showAsButton, Map additionalProperties) { this.id = id; this.name = name; @@ -68,9 +65,8 @@ private ConnectionResponseContentIp( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -122,18 +118,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "ip"; @@ -144,6 +128,11 @@ public Optional> getOptions() { return options; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -164,9 +153,8 @@ private boolean equalTo(ConnectionResponseContentIp other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -180,9 +168,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.showAsButton); } @java.lang.Override @@ -212,12 +199,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional> options = Optional.empty(); private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -232,9 +217,8 @@ public Builder from(ConnectionResponseContentIp other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + showAsButton(other.getShowAsButton()); return this; } @@ -326,14 +310,14 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(Map options) { + this.options = Optional.ofNullable(options); return this; } @@ -348,17 +332,6 @@ public Builder showAsButton(Boolean showAsButton) { return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional> options) { - this.options = options; - return this; - } - - public Builder options(Map options) { - this.options = Optional.ofNullable(options); - return this; - } - public ConnectionResponseContentIp build() { return new ConnectionResponseContentIp( id, @@ -369,9 +342,8 @@ public ConnectionResponseContentIp build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + showAsButton, additionalProperties); } } 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 e543b966a..bcdbe9228 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLine.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLine.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentLine private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentLine( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentLine( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "line"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentLine other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentLine other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentLine build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 7951ef664..4fc670b7c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLinkedin.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLinkedin.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentLinkedin private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentLinkedin( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentLinkedin( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "linkedin"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentLinkedin other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentLinkedin other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentLinkedin build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 bcc66a27d..9fb88dd4c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicard.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicard.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentMiicard private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentMiicard( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentMiicard( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "miicard"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentMiicard other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentMiicard other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentMiicard build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 c21029d7f..1bc53038f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth1.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth1.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentOAuth1 private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentOAuth1( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentOAuth1( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "oauth1"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentOAuth1 other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentOAuth1 other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentOAuth1 build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 f967f3d6d..b3bb223ad 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth2.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentOAuth2 private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentOAuth2( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentOAuth2( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "oauth2"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentOAuth2 other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentOAuth2 other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentOAuth2 build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 9bb7923a3..5365e3a84 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOffice365.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOffice365.java @@ -39,12 +39,10 @@ public final class ConnectionResponseContentOffice365 private final Optional>> metadata; - private final Optional> realms; + private final Optional> options; private final Optional showAsButton; - private final Optional> options; - private final Map additionalProperties; private ConnectionResponseContentOffice365( @@ -56,9 +54,8 @@ private ConnectionResponseContentOffice365( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, + Optional showAsButton, Map additionalProperties) { this.id = id; this.name = name; @@ -68,9 +65,8 @@ private ConnectionResponseContentOffice365( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -122,18 +118,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "office365"; @@ -144,6 +128,11 @@ public Optional> getOptions() { return options; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -165,9 +154,8 @@ private boolean equalTo(ConnectionResponseContentOffice365 other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -181,9 +169,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.showAsButton); } @java.lang.Override @@ -213,12 +200,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional> options = Optional.empty(); private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -233,9 +218,8 @@ public Builder from(ConnectionResponseContentOffice365 other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + showAsButton(other.getShowAsButton()); return this; } @@ -327,14 +311,14 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(Map options) { + this.options = Optional.ofNullable(options); return this; } @@ -349,17 +333,6 @@ public Builder showAsButton(Boolean showAsButton) { return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional> options) { - this.options = options; - return this; - } - - public Builder options(Map options) { - this.options = Optional.ofNullable(options); - return this; - } - public ConnectionResponseContentOffice365 build() { return new ConnectionResponseContentOffice365( id, @@ -370,9 +343,8 @@ public ConnectionResponseContentOffice365 build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + showAsButton, additionalProperties); } } 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 ffe99c2e6..c97053901 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java @@ -39,12 +39,10 @@ public final class ConnectionResponseContentOidc private final Optional>> metadata; - private final Optional> realms; + private final Optional options; private final Optional showAsButton; - private final Optional options; - private final Map additionalProperties; private ConnectionResponseContentOidc( @@ -56,9 +54,8 @@ private ConnectionResponseContentOidc( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, + Optional showAsButton, Map additionalProperties) { this.id = id; this.name = name; @@ -68,9 +65,8 @@ private ConnectionResponseContentOidc( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -122,18 +118,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "oidc"; @@ -144,6 +128,11 @@ public Optional getOptions() { return options; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -164,9 +153,8 @@ private boolean equalTo(ConnectionResponseContentOidc other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -180,9 +168,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.showAsButton); } @java.lang.Override @@ -212,12 +199,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional options = Optional.empty(); private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -232,9 +217,8 @@ public Builder from(ConnectionResponseContentOidc other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + showAsButton(other.getShowAsButton()); return this; } @@ -326,14 +310,14 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(ConnectionOptionsOidc options) { + this.options = Optional.ofNullable(options); return this; } @@ -348,17 +332,6 @@ public Builder showAsButton(Boolean showAsButton) { return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional options) { - this.options = options; - return this; - } - - public Builder options(ConnectionOptionsOidc options) { - this.options = Optional.ofNullable(options); - return this; - } - public ConnectionResponseContentOidc build() { return new ConnectionResponseContentOidc( id, @@ -369,9 +342,8 @@ public ConnectionResponseContentOidc build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + showAsButton, additionalProperties); } } 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 586814ebd..8beaee82a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOkta.java @@ -39,12 +39,10 @@ public final class ConnectionResponseContentOkta private final Optional>> metadata; - private final Optional> realms; + private final Optional options; private final Optional showAsButton; - private final Optional options; - private final Map additionalProperties; private ConnectionResponseContentOkta( @@ -56,9 +54,8 @@ private ConnectionResponseContentOkta( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, + Optional showAsButton, Map additionalProperties) { this.id = id; this.name = name; @@ -68,9 +65,8 @@ private ConnectionResponseContentOkta( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -122,18 +118,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "okta"; @@ -144,6 +128,11 @@ public Optional getOptions() { return options; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -164,9 +153,8 @@ private boolean equalTo(ConnectionResponseContentOkta other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -180,9 +168,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.showAsButton); } @java.lang.Override @@ -212,12 +199,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional options = Optional.empty(); private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -232,9 +217,8 @@ public Builder from(ConnectionResponseContentOkta other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + showAsButton(other.getShowAsButton()); return this; } @@ -326,14 +310,14 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(ConnectionOptionsOkta options) { + this.options = Optional.ofNullable(options); return this; } @@ -348,17 +332,6 @@ public Builder showAsButton(Boolean showAsButton) { return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional options) { - this.options = options; - return this; - } - - public Builder options(ConnectionOptionsOkta options) { - this.options = Optional.ofNullable(options); - return this; - } - public ConnectionResponseContentOkta build() { return new ConnectionResponseContentOkta( id, @@ -369,9 +342,8 @@ public ConnectionResponseContentOkta build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + showAsButton, additionalProperties); } } 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 3ee802ea9..6fc14e584 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypal.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypal.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentPaypal private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentPaypal( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentPaypal( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "paypal"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentPaypal other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentPaypal other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentPaypal build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 6f94bccee..79c2dd002 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypalSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypalSandbox.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentPaypalSandbox private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentPaypalSandbox( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentPaypalSandbox( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "paypal-sandbox"; @@ -165,8 +145,6 @@ private boolean equalTo(ConnectionResponseContentPaypalSandbox other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -181,8 +159,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -213,10 +189,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -233,8 +205,6 @@ public Builder from(ConnectionResponseContentPaypalSandbox other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -327,28 +297,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -370,8 +318,6 @@ public ConnectionResponseContentPaypalSandbox build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 2c54365d5..b90a013a4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPingFederate.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPingFederate.java @@ -39,11 +39,11 @@ public final class ConnectionResponseContentPingFederate private final Optional>> metadata; - private final Optional> realms; + private final Optional options; - private final Optional showAsButton; + private final Optional provisioningTicketUrl; - private final Optional> options; + private final Optional showAsButton; private final Map additionalProperties; @@ -56,9 +56,9 @@ private ConnectionResponseContentPingFederate( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, + Optional options, + Optional provisioningTicketUrl, Optional showAsButton, - Optional> options, Map additionalProperties) { this.id = id; this.name = name; @@ -68,9 +68,9 @@ private ConnectionResponseContentPingFederate( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.provisioningTicketUrl = provisioningTicketUrl; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -122,28 +122,26 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "pingfederate"; } @JsonProperty("options") - public Optional> getOptions() { + public Optional getOptions() { return options; } + @JsonProperty("provisioning_ticket_url") + public Optional getProvisioningTicketUrl() { + return provisioningTicketUrl; + } + + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -165,9 +163,9 @@ private boolean equalTo(ConnectionResponseContentPingFederate other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && provisioningTicketUrl.equals(other.provisioningTicketUrl) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -181,9 +179,9 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.provisioningTicketUrl, + this.showAsButton); } @java.lang.Override @@ -213,11 +211,11 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional options = Optional.empty(); - private Optional showAsButton = Optional.empty(); + private Optional provisioningTicketUrl = Optional.empty(); - private Optional> options = Optional.empty(); + private Optional showAsButton = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -233,9 +231,9 @@ public Builder from(ConnectionResponseContentPingFederate other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + provisioningTicketUrl(other.getProvisioningTicketUrl()); + showAsButton(other.getShowAsButton()); return this; } @@ -327,36 +325,36 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(ConnectionOptionsPingFederate options) { + this.options = Optional.ofNullable(options); return this; } - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; + @JsonSetter(value = "provisioning_ticket_url", nulls = Nulls.SKIP) + public Builder provisioningTicketUrl(Optional provisioningTicketUrl) { + this.provisioningTicketUrl = provisioningTicketUrl; return this; } - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); + public Builder provisioningTicketUrl(String provisioningTicketUrl) { + this.provisioningTicketUrl = Optional.ofNullable(provisioningTicketUrl); return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional> options) { - this.options = options; + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public Builder showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; return this; } - public Builder options(Map options) { - this.options = Optional.ofNullable(options); + public Builder showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); return this; } @@ -370,9 +368,9 @@ public ConnectionResponseContentPingFederate build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + provisioningTicketUrl, + showAsButton, additionalProperties); } } 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 b0547f916..69eeadd5e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPlanningCenter.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPlanningCenter.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentPlanningCenter private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentPlanningCenter( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentPlanningCenter( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "planningcenter"; @@ -165,8 +145,6 @@ private boolean equalTo(ConnectionResponseContentPlanningCenter other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -181,8 +159,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -213,10 +189,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -233,8 +205,6 @@ public Builder from(ConnectionResponseContentPlanningCenter other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -327,28 +297,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -370,8 +318,6 @@ public ConnectionResponseContentPlanningCenter build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 8f7131d9f..ed4fb787d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenren.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenren.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentRenren private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentRenren( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentRenren( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "renren"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentRenren other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentRenren other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentRenren build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 1385608eb..31791db4b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforce.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforce.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentSalesforce private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentSalesforce( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentSalesforce( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "salesforce"; @@ -165,8 +145,6 @@ private boolean equalTo(ConnectionResponseContentSalesforce other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -181,8 +159,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -213,10 +189,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -233,8 +205,6 @@ public Builder from(ConnectionResponseContentSalesforce other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -327,28 +297,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -370,8 +318,6 @@ public ConnectionResponseContentSalesforce build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 ef0b67f34..e7240bf1a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceCommunity.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceCommunity.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentSalesforceCommunity private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentSalesforceCommunity( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentSalesforceCommunity( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "salesforce-community"; @@ -165,8 +145,6 @@ private boolean equalTo(ConnectionResponseContentSalesforceCommunity other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -181,8 +159,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -213,10 +189,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -233,8 +205,6 @@ public Builder from(ConnectionResponseContentSalesforceCommunity other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -327,28 +297,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -370,8 +318,6 @@ public ConnectionResponseContentSalesforceCommunity build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 1f2c871e9..8f6a294f0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceSandbox.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentSalesforceSandbox private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentSalesforceSandbox( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentSalesforceSandbox( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "salesforce-sandbox"; @@ -165,8 +145,6 @@ private boolean equalTo(ConnectionResponseContentSalesforceSandbox other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -181,8 +159,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -213,10 +189,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -233,8 +205,6 @@ public Builder from(ConnectionResponseContentSalesforceSandbox other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -327,28 +297,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -370,8 +318,6 @@ public ConnectionResponseContentSalesforceSandbox build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 7222b88b6..af6b9f8a4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSaml.java @@ -39,12 +39,10 @@ public final class ConnectionResponseContentSaml private final Optional>> metadata; - private final Optional> realms; + private final Optional options; private final Optional showAsButton; - private final Optional options; - private final Map additionalProperties; private ConnectionResponseContentSaml( @@ -56,9 +54,8 @@ private ConnectionResponseContentSaml( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, + Optional showAsButton, Map additionalProperties) { this.id = id; this.name = name; @@ -68,9 +65,8 @@ private ConnectionResponseContentSaml( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -122,18 +118,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "samlp"; @@ -144,6 +128,11 @@ public Optional getOptions() { return options; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -164,9 +153,8 @@ private boolean equalTo(ConnectionResponseContentSaml other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -180,9 +168,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.showAsButton); } @java.lang.Override @@ -212,12 +199,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional options = Optional.empty(); private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -232,9 +217,8 @@ public Builder from(ConnectionResponseContentSaml other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + showAsButton(other.getShowAsButton()); return this; } @@ -326,14 +310,14 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(ConnectionOptionsSaml options) { + this.options = Optional.ofNullable(options); return this; } @@ -348,17 +332,6 @@ public Builder showAsButton(Boolean showAsButton) { return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional options) { - this.options = options; - return this; - } - - public Builder options(ConnectionOptionsSaml options) { - this.options = Optional.ofNullable(options); - return this; - } - public ConnectionResponseContentSaml build() { return new ConnectionResponseContentSaml( id, @@ -369,9 +342,8 @@ public ConnectionResponseContentSaml build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + showAsButton, additionalProperties); } } 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 47b45a949..73ce81a9f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSharepoint.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSharepoint.java @@ -39,12 +39,10 @@ public final class ConnectionResponseContentSharepoint private final Optional>> metadata; - private final Optional> realms; + private final Optional options; private final Optional showAsButton; - private final Optional options; - private final Map additionalProperties; private ConnectionResponseContentSharepoint( @@ -56,9 +54,8 @@ private ConnectionResponseContentSharepoint( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, + Optional showAsButton, Map additionalProperties) { this.id = id; this.name = name; @@ -68,9 +65,8 @@ private ConnectionResponseContentSharepoint( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -122,18 +118,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "sharepoint"; @@ -144,6 +128,11 @@ public Optional getOptions() { return options; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -165,9 +154,8 @@ private boolean equalTo(ConnectionResponseContentSharepoint other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -181,9 +169,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.showAsButton); } @java.lang.Override @@ -213,12 +200,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional options = Optional.empty(); private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -233,9 +218,8 @@ public Builder from(ConnectionResponseContentSharepoint other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + showAsButton(other.getShowAsButton()); return this; } @@ -327,14 +311,14 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); return this; } @@ -349,17 +333,6 @@ public Builder showAsButton(Boolean showAsButton) { return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional options) { - this.options = options; - return this; - } - - public Builder options(ConnectionOptionsOAuth2Common options) { - this.options = Optional.ofNullable(options); - return this; - } - public ConnectionResponseContentSharepoint build() { return new ConnectionResponseContentSharepoint( id, @@ -370,9 +343,8 @@ public ConnectionResponseContentSharepoint build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + showAsButton, additionalProperties); } } 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 74c3cb4d8..4fdc17ca7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShop.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShop.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentShop private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentShop( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentShop( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "shop"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentShop other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentShop other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentShop build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 516828676..3a5ccf165 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShopify.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShopify.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentShopify private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentShopify( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentShopify( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "shopify"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentShopify other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentShopify other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentShopify build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 1bb885eca..0f5d418b7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSms.java @@ -39,11 +39,7 @@ public final class ConnectionResponseContentSms private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - - private final Optional> options; + private final Optional options; private final Map additionalProperties; @@ -56,9 +52,7 @@ private ConnectionResponseContentSms( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, - Optional> options, + Optional options, Map additionalProperties) { this.id = id; this.name = name; @@ -68,8 +62,6 @@ private ConnectionResponseContentSms( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,25 +114,13 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "sms"; } @JsonProperty("options") - public Optional> getOptions() { + public Optional getOptions() { return options; } @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentSms other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,11 +188,7 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - - private Optional> options = Optional.empty(); + private Optional options = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentSms other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,35 +296,13 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional> options) { + public Builder options(Optional options) { this.options = options; return this; } - public Builder options(Map options) { + public Builder options(ConnectionOptionsSms options) { this.options = Optional.ofNullable(options); return this; } @@ -369,8 +317,6 @@ public ConnectionResponseContentSms build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 16a37e7ef..14f8d239c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSoundcloud.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSoundcloud.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentSoundcloud private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentSoundcloud( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentSoundcloud( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "soundcloud"; @@ -165,8 +145,6 @@ private boolean equalTo(ConnectionResponseContentSoundcloud other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -181,8 +159,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -213,10 +189,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -233,8 +205,6 @@ public Builder from(ConnectionResponseContentSoundcloud other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -327,28 +297,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -370,8 +318,6 @@ public ConnectionResponseContentSoundcloud build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTheCity.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTheCity.java index f5d1c34af..cc03dc99e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTheCity.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTheCity.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentTheCity private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentTheCity( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentTheCity( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "thecity"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentTheCity other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentTheCity other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentTheCity build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTheCitySandbox.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTheCitySandbox.java index b5c7d0a74..be6fe2479 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTheCitySandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTheCitySandbox.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentTheCitySandbox private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentTheCitySandbox( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentTheCitySandbox( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "thecity-sandbox"; @@ -165,8 +145,6 @@ private boolean equalTo(ConnectionResponseContentTheCitySandbox other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -181,8 +159,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -213,10 +189,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -233,8 +205,6 @@ public Builder from(ConnectionResponseContentTheCitySandbox other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -327,28 +297,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -370,8 +318,6 @@ public ConnectionResponseContentTheCitySandbox build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 045fe7ed1..2147fee85 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentThirtySevenSignals.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentThirtySevenSignals.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentThirtySevenSignals private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentThirtySevenSignals( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentThirtySevenSignals( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "thirtysevensignals"; @@ -165,8 +145,6 @@ private boolean equalTo(ConnectionResponseContentThirtySevenSignals other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -181,8 +159,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -213,10 +189,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -233,8 +205,6 @@ public Builder from(ConnectionResponseContentThirtySevenSignals other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -327,28 +297,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -370,8 +318,6 @@ public ConnectionResponseContentThirtySevenSignals build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 8e384122f..dab4b51cb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTwitter.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTwitter.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentTwitter private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentTwitter( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentTwitter( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "twitter"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentTwitter other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentTwitter other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentTwitter build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 9ceff3f77..a843eff9c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentUntappd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentUntappd.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentUntappd private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentUntappd( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentUntappd( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "untappd"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentUntappd other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentUntappd other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentUntappd build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 35ffd6cbd..03275b513 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentVkontakte.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentVkontakte.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentVkontakte private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentVkontakte( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentVkontakte( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "vkontakte"; @@ -165,8 +145,6 @@ private boolean equalTo(ConnectionResponseContentVkontakte other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -181,8 +159,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -213,10 +189,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -233,8 +205,6 @@ public Builder from(ConnectionResponseContentVkontakte other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -327,28 +297,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -370,8 +318,6 @@ public ConnectionResponseContentVkontakte build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 149c58aae..80b1b4bba 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWeibo.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWeibo.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentWeibo private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentWeibo( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentWeibo( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "weibo"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentWeibo other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentWeibo other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentWeibo build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 a838fde01..312d8a795 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWindowsLive.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWindowsLive.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentWindowsLive private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentWindowsLive( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentWindowsLive( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "windowslive"; @@ -165,8 +145,6 @@ private boolean equalTo(ConnectionResponseContentWindowsLive other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -181,8 +159,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -213,10 +189,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -233,8 +205,6 @@ public Builder from(ConnectionResponseContentWindowsLive other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -327,28 +297,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -370,8 +318,6 @@ public ConnectionResponseContentWindowsLive build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 3da2d8bfc..bf6bbbfd8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWordpress.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWordpress.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentWordpress private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentWordpress( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentWordpress( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "wordpress"; @@ -165,8 +145,6 @@ private boolean equalTo(ConnectionResponseContentWordpress other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -181,8 +159,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -213,10 +189,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -233,8 +205,6 @@ public Builder from(ConnectionResponseContentWordpress other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -327,28 +297,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -370,8 +318,6 @@ public ConnectionResponseContentWordpress build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 0ca1e1f81..df83a7ab1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYahoo.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYahoo.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentYahoo private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentYahoo( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentYahoo( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "yahoo"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentYahoo other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentYahoo other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentYahoo build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 1421aa33f..a86c4d4ed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammer.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammer.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentYammer private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentYammer( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentYammer( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "yammer"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentYammer other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentYammer other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentYammer build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 7baa64cae..d2ba70e22 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYandex.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYandex.java @@ -39,10 +39,6 @@ public final class ConnectionResponseContentYandex private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -56,8 +52,6 @@ private ConnectionResponseContentYandex( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.id = id; @@ -68,8 +62,6 @@ private ConnectionResponseContentYandex( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -122,18 +114,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "yandex"; @@ -164,8 +144,6 @@ private boolean equalTo(ConnectionResponseContentYandex other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -180,8 +158,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -212,10 +188,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -232,8 +204,6 @@ public Builder from(ConnectionResponseContentYandex other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -326,28 +296,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -369,8 +317,6 @@ public ConnectionResponseContentYandex build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionTemplateSyntaxEnumSms.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionTemplateSyntaxEnumSms.java new file mode 100644 index 000000000..c466ff653 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionTemplateSyntaxEnumSms.java @@ -0,0 +1,86 @@ +/** + * 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 ConnectionTemplateSyntaxEnumSms { + public static final ConnectionTemplateSyntaxEnumSms MD_WITH_MACROS = + new ConnectionTemplateSyntaxEnumSms(Value.MD_WITH_MACROS, "md_with_macros"); + + public static final ConnectionTemplateSyntaxEnumSms LIQUID = + new ConnectionTemplateSyntaxEnumSms(Value.LIQUID, "liquid"); + + private final Value value; + + private final String string; + + ConnectionTemplateSyntaxEnumSms(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 ConnectionTemplateSyntaxEnumSms + && this.string.equals(((ConnectionTemplateSyntaxEnumSms) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case MD_WITH_MACROS: + return visitor.visitMdWithMacros(); + case LIQUID: + return visitor.visitLiquid(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static ConnectionTemplateSyntaxEnumSms valueOf(String value) { + switch (value) { + case "md_with_macros": + return MD_WITH_MACROS; + case "liquid": + return LIQUID; + default: + return new ConnectionTemplateSyntaxEnumSms(Value.UNKNOWN, value); + } + } + + public enum Value { + LIQUID, + + MD_WITH_MACROS, + + UNKNOWN + } + + public interface Visitor { + T visitLiquid(); + + T visitMdWithMacros(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpEmail.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpEmail.java new file mode 100644 index 000000000..5e6f892c7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpEmail.java @@ -0,0 +1,118 @@ +/** + * 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 = ConnectionTotpEmail.Builder.class) +public final class ConnectionTotpEmail { + private final Optional length; + + private final Optional timeStep; + + private final Map additionalProperties; + + private ConnectionTotpEmail( + Optional length, Optional timeStep, Map additionalProperties) { + this.length = length; + this.timeStep = timeStep; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("length") + public Optional getLength() { + return length; + } + + @JsonProperty("time_step") + public Optional getTimeStep() { + return timeStep; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionTotpEmail && equalTo((ConnectionTotpEmail) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionTotpEmail other) { + return length.equals(other.length) && timeStep.equals(other.timeStep); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.length, this.timeStep); + } + + @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 length = Optional.empty(); + + private Optional timeStep = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionTotpEmail other) { + length(other.getLength()); + timeStep(other.getTimeStep()); + return this; + } + + @JsonSetter(value = "length", nulls = Nulls.SKIP) + public Builder length(Optional length) { + this.length = length; + return this; + } + + public Builder length(Integer length) { + this.length = Optional.ofNullable(length); + return this; + } + + @JsonSetter(value = "time_step", nulls = Nulls.SKIP) + public Builder timeStep(Optional timeStep) { + this.timeStep = timeStep; + return this; + } + + public Builder timeStep(Integer timeStep) { + this.timeStep = Optional.ofNullable(timeStep); + return this; + } + + public ConnectionTotpEmail build() { + return new ConnectionTotpEmail(length, timeStep, additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpSms.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpSms.java new file mode 100644 index 000000000..f036250df --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpSms.java @@ -0,0 +1,118 @@ +/** + * 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 = ConnectionTotpSms.Builder.class) +public final class ConnectionTotpSms { + private final Optional length; + + private final Optional timeStep; + + private final Map additionalProperties; + + private ConnectionTotpSms( + Optional length, Optional timeStep, Map additionalProperties) { + this.length = length; + this.timeStep = timeStep; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("length") + public Optional getLength() { + return length; + } + + @JsonProperty("time_step") + public Optional getTimeStep() { + return timeStep; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionTotpSms && equalTo((ConnectionTotpSms) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionTotpSms other) { + return length.equals(other.length) && timeStep.equals(other.timeStep); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.length, this.timeStep); + } + + @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 length = Optional.empty(); + + private Optional timeStep = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionTotpSms other) { + length(other.getLength()); + timeStep(other.getTimeStep()); + return this; + } + + @JsonSetter(value = "length", nulls = Nulls.SKIP) + public Builder length(Optional length) { + this.length = length; + return this; + } + + public Builder length(Integer length) { + this.length = Optional.ofNullable(length); + return this; + } + + @JsonSetter(value = "time_step", nulls = Nulls.SKIP) + public Builder timeStep(Optional timeStep) { + this.timeStep = timeStep; + return this; + } + + public Builder timeStep(Integer timeStep) { + this.timeStep = Optional.ofNullable(timeStep); + return this; + } + + public ConnectionTotpSms build() { + return new ConnectionTotpSms(length, timeStep, additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientAuthenticationMethodSelfSignedTlsClientAuth.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientAuthenticationMethodSelfSignedTlsClientAuth.java new file mode 100644 index 000000000..a3df1c27b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientAuthenticationMethodSelfSignedTlsClientAuth.java @@ -0,0 +1,108 @@ +/** + * 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.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = CreateClientAuthenticationMethodSelfSignedTlsClientAuth.Builder.class) +public final class CreateClientAuthenticationMethodSelfSignedTlsClientAuth { + private final List credentials; + + private final Map additionalProperties; + + private CreateClientAuthenticationMethodSelfSignedTlsClientAuth( + List credentials, Map additionalProperties) { + this.credentials = credentials; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("credentials") + public List getCredentials() { + return credentials; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CreateClientAuthenticationMethodSelfSignedTlsClientAuth + && equalTo((CreateClientAuthenticationMethodSelfSignedTlsClientAuth) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CreateClientAuthenticationMethodSelfSignedTlsClientAuth other) { + return credentials.equals(other.credentials); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.credentials); + } + + @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 List credentials = new ArrayList<>(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(CreateClientAuthenticationMethodSelfSignedTlsClientAuth other) { + credentials(other.getCredentials()); + return this; + } + + @JsonSetter(value = "credentials", nulls = Nulls.SKIP) + public Builder credentials(List credentials) { + this.credentials.clear(); + if (credentials != null) { + this.credentials.addAll(credentials); + } + return this; + } + + public Builder addCredentials(X509CertificateCredential credentials) { + this.credentials.add(credentials); + return this; + } + + public Builder addAllCredentials(List credentials) { + if (credentials != null) { + this.credentials.addAll(credentials); + } + return this; + } + + public CreateClientAuthenticationMethodSelfSignedTlsClientAuth build() { + return new CreateClientAuthenticationMethodSelfSignedTlsClientAuth(credentials, additionalProperties); + } + } +} 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 5440e4b06..8b4e27bd0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionCommon.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionCommon.java @@ -36,10 +36,6 @@ public final class CreateConnectionCommon implements ICreateConnectionCommon, IC private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Map additionalProperties; private CreateConnectionCommon( @@ -50,8 +46,6 @@ private CreateConnectionCommon( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Map additionalProperties) { this.name = name; this.authentication = authentication; @@ -60,8 +54,6 @@ private CreateConnectionCommon( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -107,18 +99,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -137,9 +117,7 @@ private boolean equalTo(CreateConnectionCommon other) { && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) - && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton); + && metadata.equals(other.metadata); } @java.lang.Override @@ -151,9 +129,7 @@ public int hashCode() { this.displayName, this.enabledClients, this.isDomainConnection, - this.metadata, - this.realms, - this.showAsButton); + this.metadata); } @java.lang.Override @@ -181,10 +157,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -198,8 +170,6 @@ public Builder from(CreateConnectionCommon other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); return this; } @@ -280,28 +250,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - public CreateConnectionCommon build() { return new CreateConnectionCommon( name, @@ -311,8 +259,6 @@ public CreateConnectionCommon build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, additionalProperties); } } 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 43e2283c0..6a9f4a800 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAd.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentAd implements ICreateConnection private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentAd( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentAd( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "ad"; @@ -152,8 +132,6 @@ private boolean equalTo(CreateConnectionRequestContentAd other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -167,8 +145,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -197,10 +173,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -216,8 +188,6 @@ public Builder from(CreateConnectionRequestContentAd other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -299,28 +269,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -341,8 +289,6 @@ public CreateConnectionRequestContentAd build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 487bf76c0..3000b510c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAdfs.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAdfs.java @@ -36,12 +36,10 @@ public final class CreateConnectionRequestContentAdfs implements ICreateConnecti private final Optional>> metadata; - private final Optional> realms; + private final Optional options; private final Optional showAsButton; - private final Optional> options; - private final Map additionalProperties; private CreateConnectionRequestContentAdfs( @@ -52,9 +50,8 @@ private CreateConnectionRequestContentAdfs( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, + Optional options, Optional showAsButton, - Optional> options, Map additionalProperties) { this.name = name; this.authentication = authentication; @@ -63,9 +60,8 @@ private CreateConnectionRequestContentAdfs( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -111,28 +107,21 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "adfs"; } @JsonProperty("options") - public Optional> getOptions() { + public Optional getOptions() { return options; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -153,9 +142,8 @@ private boolean equalTo(CreateConnectionRequestContentAdfs other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -168,9 +156,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.showAsButton); } @java.lang.Override @@ -198,12 +185,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional options = Optional.empty(); private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -217,9 +202,8 @@ public Builder from(CreateConnectionRequestContentAdfs other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + showAsButton(other.getShowAsButton()); return this; } @@ -300,14 +284,14 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(ConnectionOptionsAdfs options) { + this.options = Optional.ofNullable(options); return this; } @@ -322,17 +306,6 @@ public Builder showAsButton(Boolean showAsButton) { return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional> options) { - this.options = options; - return this; - } - - public Builder options(Map options) { - this.options = Optional.ofNullable(options); - return this; - } - public CreateConnectionRequestContentAdfs build() { return new CreateConnectionRequestContentAdfs( name, @@ -342,9 +315,8 @@ public CreateConnectionRequestContentAdfs build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + showAsButton, additionalProperties); } } 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 03d407b96..f84f0f291 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAmazon.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAmazon.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentAmazon implements ICreateConnec private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentAmazon( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentAmazon( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "amazon"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentAmazon other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentAmazon other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentAmazon build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 e9bcef54f..ce930e325 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAol.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAol.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentAol implements ICreateConnectio private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentAol( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentAol( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "aol"; @@ -152,8 +132,6 @@ private boolean equalTo(CreateConnectionRequestContentAol other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -167,8 +145,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -197,10 +173,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -216,8 +188,6 @@ public Builder from(CreateConnectionRequestContentAol other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -299,28 +269,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -341,8 +289,6 @@ public CreateConnectionRequestContentAol build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 aed39b0be..515bada53 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentApple.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentApple.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentApple implements ICreateConnect private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentApple( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentApple( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "apple"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentApple other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentApple other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentApple build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 cc59d1a5b..f8e3ebe8c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0.java @@ -36,12 +36,10 @@ public final class CreateConnectionRequestContentAuth0 implements ICreateConnect private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; + private final Optional> realms; + private final Map additionalProperties; private CreateConnectionRequestContentAuth0( @@ -52,9 +50,8 @@ private CreateConnectionRequestContentAuth0( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, + Optional> realms, Map additionalProperties) { this.name = name; this.authentication = authentication; @@ -63,9 +60,8 @@ private CreateConnectionRequestContentAuth0( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.realms = realms; this.additionalProperties = additionalProperties; } @@ -111,18 +107,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "auth0"; @@ -133,6 +117,11 @@ public Optional getOptions() { return options; } + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -153,9 +142,8 @@ private boolean equalTo(CreateConnectionRequestContentAuth0 other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && realms.equals(other.realms); } @java.lang.Override @@ -168,9 +156,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.realms); } @java.lang.Override @@ -198,12 +185,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); + private Optional> realms = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -217,9 +202,8 @@ public Builder from(CreateConnectionRequestContentAuth0 other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + realms(other.getRealms()); return this; } @@ -300,36 +284,25 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; return this; } - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); + public Builder options(ConnectionOptionsAuth0 options) { + this.options = Optional.ofNullable(options); return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional options) { - this.options = options; + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public Builder realms(Optional> realms) { + this.realms = realms; return this; } - public Builder options(ConnectionOptionsAuth0 options) { - this.options = Optional.ofNullable(options); + public Builder realms(List realms) { + this.realms = Optional.ofNullable(realms); return this; } @@ -342,9 +315,8 @@ public CreateConnectionRequestContentAuth0 build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + realms, additionalProperties); } } 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 98e306b66..45b392e38 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0Oidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0Oidc.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentAuth0Oidc implements ICreateCon private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentAuth0Oidc( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentAuth0Oidc( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "auth0-oidc"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentAuth0Oidc other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentAuth0Oidc other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentAuth0Oidc build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 13477b4aa..370f49260 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAzureAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAzureAd.java @@ -36,16 +36,14 @@ public final class CreateConnectionRequestContentAzureAd implements ICreateConne private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Optional provisioningTicket; private final Optional provisioningTicketUrl; + private final Optional showAsButton; + private final Map additionalProperties; private CreateConnectionRequestContentAzureAd( @@ -56,11 +54,10 @@ private CreateConnectionRequestContentAzureAd( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Optional provisioningTicket, Optional provisioningTicketUrl, + Optional showAsButton, Map additionalProperties) { this.name = name; this.authentication = authentication; @@ -69,11 +66,10 @@ private CreateConnectionRequestContentAzureAd( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.provisioningTicket = provisioningTicket; this.provisioningTicketUrl = provisioningTicketUrl; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -119,18 +115,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "waad"; @@ -151,6 +135,11 @@ public Optional getProvisioningTicketUrl() { return provisioningTicketUrl; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -171,11 +160,10 @@ private boolean equalTo(CreateConnectionRequestContentAzureAd other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options) && provisioningTicket.equals(other.provisioningTicket) - && provisioningTicketUrl.equals(other.provisioningTicketUrl); + && provisioningTicketUrl.equals(other.provisioningTicketUrl) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -188,11 +176,10 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options, this.provisioningTicket, - this.provisioningTicketUrl); + this.provisioningTicketUrl, + this.showAsButton); } @java.lang.Override @@ -220,16 +207,14 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); private Optional provisioningTicket = Optional.empty(); private Optional provisioningTicketUrl = Optional.empty(); + private Optional showAsButton = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -243,11 +228,10 @@ public Builder from(CreateConnectionRequestContentAzureAd other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); provisioningTicket(other.getProvisioningTicket()); provisioningTicketUrl(other.getProvisioningTicketUrl()); + showAsButton(other.getShowAsButton()); return this; } @@ -328,28 +312,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -383,6 +345,17 @@ public Builder provisioningTicketUrl(String provisioningTicketUrl) { return this; } + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public Builder showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + public Builder showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + public CreateConnectionRequestContentAzureAd build() { return new CreateConnectionRequestContentAzureAd( name, @@ -392,11 +365,10 @@ public CreateConnectionRequestContentAzureAd build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, provisioningTicket, provisioningTicketUrl, + showAsButton, additionalProperties); } } 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 20c3c7680..892daeeb4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBaidu.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBaidu.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentBaidu implements ICreateConnect private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentBaidu( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentBaidu( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "baidu"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentBaidu other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentBaidu other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentBaidu build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 1c5f756db..31fd3c206 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitbucket.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitbucket.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentBitbucket implements ICreateCon private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentBitbucket( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentBitbucket( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "bitbucket"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentBitbucket other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentBitbucket other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentBitbucket build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 6ed7cf5b3..6b21d6412 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitly.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitly.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentBitly implements ICreateConnect private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentBitly( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentBitly( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "bitly"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentBitly other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentBitly other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentBitly build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 241467297..235e3e5dd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBox.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentBox implements ICreateConnectio private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentBox( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentBox( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "box"; @@ -152,8 +132,6 @@ private boolean equalTo(CreateConnectionRequestContentBox other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -167,8 +145,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -197,10 +173,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -216,8 +188,6 @@ public Builder from(CreateConnectionRequestContentBox other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -299,28 +269,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -341,8 +289,6 @@ public CreateConnectionRequestContentBox build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 6af318e4e..821b2c6a0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentCustom.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentCustom implements ICreateConnec private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentCustom( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentCustom( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "custom"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentCustom other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentCustom other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentCustom build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 1ebbd5783..4bc134892 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDaccount.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDaccount.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentDaccount implements ICreateConn private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentDaccount( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentDaccount( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "daccount"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentDaccount other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentDaccount other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentDaccount build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 b6370d182..dd2510e33 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDropbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDropbox.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentDropbox implements ICreateConne private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentDropbox( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentDropbox( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "dropbox"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentDropbox other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentDropbox other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentDropbox build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 fb57d7d65..433e3507a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDwolla.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDwolla.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentDwolla implements ICreateConnec private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentDwolla( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentDwolla( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "dwolla"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentDwolla other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentDwolla other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentDwolla build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 4a300eaa3..bba7c8872 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEmail.java @@ -36,11 +36,7 @@ public final class CreateConnectionRequestContentEmail implements ICreateConnect private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - - private final Optional> options; + private final Optional options; private final Map additionalProperties; @@ -52,9 +48,7 @@ private CreateConnectionRequestContentEmail( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, - Optional> options, + Optional options, Map additionalProperties) { this.name = name; this.authentication = authentication; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentEmail( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,25 +103,13 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "email"; } @JsonProperty("options") - public Optional> getOptions() { + public Optional getOptions() { return options; } @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentEmail other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,11 +174,7 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - - private Optional> options = Optional.empty(); + private Optional options = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentEmail other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,35 +270,13 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional> options) { + public Builder options(Optional options) { this.options = options; return this; } - public Builder options(Map options) { + public Builder options(ConnectionOptionsEmail options) { this.options = Optional.ofNullable(options); return this; } @@ -342,8 +290,6 @@ public CreateConnectionRequestContentEmail build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 6858b26df..4710331cb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernote.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernote.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentEvernote implements ICreateConn private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentEvernote( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentEvernote( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "evernote"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentEvernote other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentEvernote other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentEvernote build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 b6db61ca7..7712f2c04 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernoteSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernoteSandbox.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentEvernoteSandbox implements ICre private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentEvernoteSandbox( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentEvernoteSandbox( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "evernote-sandbox"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentEvernoteSandbox other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentEvernoteSandbox other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentEvernoteSandbox build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 76c11a985..0b28bbf9c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentExact.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentExact.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentExact implements ICreateConnect private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentExact( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentExact( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "exact"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentExact other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentExact other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentExact build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 bde35c9b6..f263832a6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFacebook.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFacebook.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentFacebook implements ICreateConn private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentFacebook( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentFacebook( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "facebook"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentFacebook other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentFacebook other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentFacebook build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 7c482fd50..1522ab1c3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFitbit.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFitbit.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentFitbit implements ICreateConnec private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentFitbit( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentFitbit( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "fitbit"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentFitbit other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentFitbit other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentFitbit build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 9a387de0f..1fbee0b4f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFlickr.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFlickr.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentFlickr implements ICreateConnec private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentFlickr( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentFlickr( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "flickr"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentFlickr other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentFlickr other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentFlickr build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 a6519e93e..aa5ffac93 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGitHub.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGitHub.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentGitHub implements ICreateConnec private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentGitHub( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentGitHub( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "github"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentGitHub other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentGitHub other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentGitHub build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 72209079f..e96c7f24f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleApps.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleApps.java @@ -36,12 +36,10 @@ public final class CreateConnectionRequestContentGoogleApps implements ICreateCo private final Optional>> metadata; - private final Optional> realms; + private final Optional options; private final Optional showAsButton; - private final Optional options; - private final Map additionalProperties; private CreateConnectionRequestContentGoogleApps( @@ -52,9 +50,8 @@ private CreateConnectionRequestContentGoogleApps( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, + Optional showAsButton, Map additionalProperties) { this.name = name; this.authentication = authentication; @@ -63,9 +60,8 @@ private CreateConnectionRequestContentGoogleApps( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -111,18 +107,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "google-apps"; @@ -133,6 +117,11 @@ public Optional getOptions() { return options; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -153,9 +142,8 @@ private boolean equalTo(CreateConnectionRequestContentGoogleApps other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -168,9 +156,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.showAsButton); } @java.lang.Override @@ -198,12 +185,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional options = Optional.empty(); private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -217,9 +202,8 @@ public Builder from(CreateConnectionRequestContentGoogleApps other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + showAsButton(other.getShowAsButton()); return this; } @@ -300,14 +284,14 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(ConnectionOptionsGoogleApps options) { + this.options = Optional.ofNullable(options); return this; } @@ -322,17 +306,6 @@ public Builder showAsButton(Boolean showAsButton) { return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional options) { - this.options = options; - return this; - } - - public Builder options(ConnectionOptionsGoogleApps options) { - this.options = Optional.ofNullable(options); - return this; - } - public CreateConnectionRequestContentGoogleApps build() { return new CreateConnectionRequestContentGoogleApps( name, @@ -342,9 +315,8 @@ public CreateConnectionRequestContentGoogleApps build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + showAsButton, additionalProperties); } } 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 ea5c79eb4..7dc8f6f7e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleOAuth2.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentGoogleOAuth2 implements ICreate private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentGoogleOAuth2( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentGoogleOAuth2( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "google-oauth2"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentGoogleOAuth2 other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentGoogleOAuth2 other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentGoogleOAuth2 build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 cc82c81a5..7b32df26a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentInstagram.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentInstagram.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentInstagram implements ICreateCon private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentInstagram( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentInstagram( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "instagram"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentInstagram other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentInstagram other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentInstagram build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 d9ae30d00..a6fba59ea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentIp.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentIp.java @@ -36,12 +36,10 @@ public final class CreateConnectionRequestContentIp implements ICreateConnection private final Optional>> metadata; - private final Optional> realms; + private final Optional> options; private final Optional showAsButton; - private final Optional> options; - private final Map additionalProperties; private CreateConnectionRequestContentIp( @@ -52,9 +50,8 @@ private CreateConnectionRequestContentIp( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, + Optional showAsButton, Map additionalProperties) { this.name = name; this.authentication = authentication; @@ -63,9 +60,8 @@ private CreateConnectionRequestContentIp( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -111,18 +107,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "ip"; @@ -133,6 +117,11 @@ public Optional> getOptions() { return options; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -152,9 +141,8 @@ private boolean equalTo(CreateConnectionRequestContentIp other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -167,9 +155,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.showAsButton); } @java.lang.Override @@ -197,12 +184,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional> options = Optional.empty(); private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -216,9 +201,8 @@ public Builder from(CreateConnectionRequestContentIp other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + showAsButton(other.getShowAsButton()); return this; } @@ -299,14 +283,14 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(Map options) { + this.options = Optional.ofNullable(options); return this; } @@ -321,17 +305,6 @@ public Builder showAsButton(Boolean showAsButton) { return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional> options) { - this.options = options; - return this; - } - - public Builder options(Map options) { - this.options = Optional.ofNullable(options); - return this; - } - public CreateConnectionRequestContentIp build() { return new CreateConnectionRequestContentIp( name, @@ -341,9 +314,8 @@ public CreateConnectionRequestContentIp build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + showAsButton, additionalProperties); } } 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 2352b7594..a06795fda 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLine.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLine.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentLine implements ICreateConnecti private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentLine( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentLine( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "line"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentLine other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentLine other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentLine build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 7076b98c7..7fb4d7761 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLinkedin.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLinkedin.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentLinkedin implements ICreateConn private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentLinkedin( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentLinkedin( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "linkedin"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentLinkedin other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentLinkedin other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentLinkedin build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 b0994ce48..f604ecbf2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicard.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicard.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentMiicard implements ICreateConne private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentMiicard( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentMiicard( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "miicard"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentMiicard other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentMiicard other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentMiicard build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 79e699b45..325ea5735 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth1.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth1.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentOAuth1 implements ICreateConnec private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentOAuth1( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentOAuth1( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "oauth1"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentOAuth1 other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentOAuth1 other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentOAuth1 build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 4086cef47..135cfb84a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth2.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentOAuth2 implements ICreateConnec private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentOAuth2( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentOAuth2( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "oauth2"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentOAuth2 other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentOAuth2 other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentOAuth2 build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 7f4a28e7f..43882cc65 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOffice365.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOffice365.java @@ -36,12 +36,10 @@ public final class CreateConnectionRequestContentOffice365 implements ICreateCon private final Optional>> metadata; - private final Optional> realms; + private final Optional> options; private final Optional showAsButton; - private final Optional> options; - private final Map additionalProperties; private CreateConnectionRequestContentOffice365( @@ -52,9 +50,8 @@ private CreateConnectionRequestContentOffice365( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, + Optional showAsButton, Map additionalProperties) { this.name = name; this.authentication = authentication; @@ -63,9 +60,8 @@ private CreateConnectionRequestContentOffice365( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -111,18 +107,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "office365"; @@ -133,6 +117,11 @@ public Optional> getOptions() { return options; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -153,9 +142,8 @@ private boolean equalTo(CreateConnectionRequestContentOffice365 other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -168,9 +156,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.showAsButton); } @java.lang.Override @@ -198,12 +185,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional> options = Optional.empty(); private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -217,9 +202,8 @@ public Builder from(CreateConnectionRequestContentOffice365 other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + showAsButton(other.getShowAsButton()); return this; } @@ -300,14 +284,14 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(Map options) { + this.options = Optional.ofNullable(options); return this; } @@ -322,17 +306,6 @@ public Builder showAsButton(Boolean showAsButton) { return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional> options) { - this.options = options; - return this; - } - - public Builder options(Map options) { - this.options = Optional.ofNullable(options); - return this; - } - public CreateConnectionRequestContentOffice365 build() { return new CreateConnectionRequestContentOffice365( name, @@ -342,9 +315,8 @@ public CreateConnectionRequestContentOffice365 build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + showAsButton, additionalProperties); } } 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 24f82cc5d..7fba992ab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java @@ -36,12 +36,10 @@ public final class CreateConnectionRequestContentOidc implements ICreateConnecti private final Optional>> metadata; - private final Optional> realms; + private final Optional options; private final Optional showAsButton; - private final Optional options; - private final Map additionalProperties; private CreateConnectionRequestContentOidc( @@ -52,9 +50,8 @@ private CreateConnectionRequestContentOidc( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, + Optional showAsButton, Map additionalProperties) { this.name = name; this.authentication = authentication; @@ -63,9 +60,8 @@ private CreateConnectionRequestContentOidc( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -111,18 +107,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "oidc"; @@ -133,6 +117,11 @@ public Optional getOptions() { return options; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -153,9 +142,8 @@ private boolean equalTo(CreateConnectionRequestContentOidc other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -168,9 +156,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.showAsButton); } @java.lang.Override @@ -198,12 +185,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional options = Optional.empty(); private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -217,9 +202,8 @@ public Builder from(CreateConnectionRequestContentOidc other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + showAsButton(other.getShowAsButton()); return this; } @@ -300,14 +284,14 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(ConnectionOptionsOidc options) { + this.options = Optional.ofNullable(options); return this; } @@ -322,17 +306,6 @@ public Builder showAsButton(Boolean showAsButton) { return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional options) { - this.options = options; - return this; - } - - public Builder options(ConnectionOptionsOidc options) { - this.options = Optional.ofNullable(options); - return this; - } - public CreateConnectionRequestContentOidc build() { return new CreateConnectionRequestContentOidc( name, @@ -342,9 +315,8 @@ public CreateConnectionRequestContentOidc build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + showAsButton, additionalProperties); } } 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 d670c48b5..19e308140 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOkta.java @@ -36,12 +36,10 @@ public final class CreateConnectionRequestContentOkta implements ICreateConnecti private final Optional>> metadata; - private final Optional> realms; + private final Optional options; private final Optional showAsButton; - private final Optional options; - private final Map additionalProperties; private CreateConnectionRequestContentOkta( @@ -52,9 +50,8 @@ private CreateConnectionRequestContentOkta( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, + Optional showAsButton, Map additionalProperties) { this.name = name; this.authentication = authentication; @@ -63,9 +60,8 @@ private CreateConnectionRequestContentOkta( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -111,18 +107,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "okta"; @@ -133,6 +117,11 @@ public Optional getOptions() { return options; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -153,9 +142,8 @@ private boolean equalTo(CreateConnectionRequestContentOkta other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -168,9 +156,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.showAsButton); } @java.lang.Override @@ -198,12 +185,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional options = Optional.empty(); private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -217,9 +202,8 @@ public Builder from(CreateConnectionRequestContentOkta other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + showAsButton(other.getShowAsButton()); return this; } @@ -300,14 +284,14 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(ConnectionOptionsOkta options) { + this.options = Optional.ofNullable(options); return this; } @@ -322,17 +306,6 @@ public Builder showAsButton(Boolean showAsButton) { return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional options) { - this.options = options; - return this; - } - - public Builder options(ConnectionOptionsOkta options) { - this.options = Optional.ofNullable(options); - return this; - } - public CreateConnectionRequestContentOkta build() { return new CreateConnectionRequestContentOkta( name, @@ -342,9 +315,8 @@ public CreateConnectionRequestContentOkta build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + showAsButton, additionalProperties); } } 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 21d5ccc6c..ea14a3d6a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypal.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypal.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentPaypal implements ICreateConnec private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentPaypal( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentPaypal( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "paypal"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentPaypal other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentPaypal other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentPaypal build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 f83e54fa2..1cea39f40 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypalSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypalSandbox.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentPaypalSandbox implements ICreat private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentPaypalSandbox( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentPaypalSandbox( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "paypal-sandbox"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentPaypalSandbox other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentPaypalSandbox other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentPaypalSandbox build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 f2b9685d2..2f246777e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPingFederate.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPingFederate.java @@ -36,12 +36,10 @@ public final class CreateConnectionRequestContentPingFederate implements ICreate private final Optional>> metadata; - private final Optional> realms; + private final Optional options; private final Optional showAsButton; - private final Optional> options; - private final Map additionalProperties; private CreateConnectionRequestContentPingFederate( @@ -52,9 +50,8 @@ private CreateConnectionRequestContentPingFederate( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, + Optional options, Optional showAsButton, - Optional> options, Map additionalProperties) { this.name = name; this.authentication = authentication; @@ -63,9 +60,8 @@ private CreateConnectionRequestContentPingFederate( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -111,28 +107,21 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "pingfederate"; } @JsonProperty("options") - public Optional> getOptions() { + public Optional getOptions() { return options; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -153,9 +142,8 @@ private boolean equalTo(CreateConnectionRequestContentPingFederate other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -168,9 +156,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.showAsButton); } @java.lang.Override @@ -198,12 +185,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional options = Optional.empty(); private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -217,9 +202,8 @@ public Builder from(CreateConnectionRequestContentPingFederate other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + showAsButton(other.getShowAsButton()); return this; } @@ -300,14 +284,14 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(ConnectionOptionsPingFederate options) { + this.options = Optional.ofNullable(options); return this; } @@ -322,17 +306,6 @@ public Builder showAsButton(Boolean showAsButton) { return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional> options) { - this.options = options; - return this; - } - - public Builder options(Map options) { - this.options = Optional.ofNullable(options); - return this; - } - public CreateConnectionRequestContentPingFederate build() { return new CreateConnectionRequestContentPingFederate( name, @@ -342,9 +315,8 @@ public CreateConnectionRequestContentPingFederate build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + showAsButton, additionalProperties); } } 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 82cdb4d46..c0c4d06ff 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPlanningCenter.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPlanningCenter.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentPlanningCenter implements ICrea private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentPlanningCenter( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentPlanningCenter( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "planningcenter"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentPlanningCenter other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentPlanningCenter other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentPlanningCenter build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 2532e535c..592611786 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenren.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenren.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentRenren implements ICreateConnec private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentRenren( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentRenren( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "renren"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentRenren other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentRenren other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentRenren build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 3985f7cd3..63cc5e710 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforce.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforce.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentSalesforce implements ICreateCo private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentSalesforce( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentSalesforce( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "salesforce"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentSalesforce other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentSalesforce other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentSalesforce build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 151fa475e..bf172b557 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceCommunity.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceCommunity.java @@ -37,10 +37,6 @@ public final class CreateConnectionRequestContentSalesforceCommunity private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -53,8 +49,6 @@ private CreateConnectionRequestContentSalesforceCommunity( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -64,8 +58,6 @@ private CreateConnectionRequestContentSalesforceCommunity( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -112,18 +104,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "salesforce-community"; @@ -154,8 +134,6 @@ private boolean equalTo(CreateConnectionRequestContentSalesforceCommunity other) && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -169,8 +147,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -199,10 +175,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -218,8 +190,6 @@ public Builder from(CreateConnectionRequestContentSalesforceCommunity other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -301,28 +271,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -343,8 +291,6 @@ public CreateConnectionRequestContentSalesforceCommunity build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 707533d17..464d95fb4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceSandbox.java @@ -37,10 +37,6 @@ public final class CreateConnectionRequestContentSalesforceSandbox private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -53,8 +49,6 @@ private CreateConnectionRequestContentSalesforceSandbox( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -64,8 +58,6 @@ private CreateConnectionRequestContentSalesforceSandbox( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -112,18 +104,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "salesforce-sandbox"; @@ -154,8 +134,6 @@ private boolean equalTo(CreateConnectionRequestContentSalesforceSandbox other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -169,8 +147,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -199,10 +175,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -218,8 +190,6 @@ public Builder from(CreateConnectionRequestContentSalesforceSandbox other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -301,28 +271,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -343,8 +291,6 @@ public CreateConnectionRequestContentSalesforceSandbox build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 0fe9dbd37..eb7718eec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSaml.java @@ -36,12 +36,10 @@ public final class CreateConnectionRequestContentSaml implements ICreateConnecti private final Optional>> metadata; - private final Optional> realms; + private final Optional options; private final Optional showAsButton; - private final Optional options; - private final Map additionalProperties; private CreateConnectionRequestContentSaml( @@ -52,9 +50,8 @@ private CreateConnectionRequestContentSaml( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, + Optional showAsButton, Map additionalProperties) { this.name = name; this.authentication = authentication; @@ -63,9 +60,8 @@ private CreateConnectionRequestContentSaml( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -111,18 +107,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "samlp"; @@ -133,6 +117,11 @@ public Optional getOptions() { return options; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -153,9 +142,8 @@ private boolean equalTo(CreateConnectionRequestContentSaml other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -168,9 +156,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.showAsButton); } @java.lang.Override @@ -198,12 +185,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional options = Optional.empty(); private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -217,9 +202,8 @@ public Builder from(CreateConnectionRequestContentSaml other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + showAsButton(other.getShowAsButton()); return this; } @@ -300,14 +284,14 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(ConnectionOptionsSaml options) { + this.options = Optional.ofNullable(options); return this; } @@ -322,17 +306,6 @@ public Builder showAsButton(Boolean showAsButton) { return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional options) { - this.options = options; - return this; - } - - public Builder options(ConnectionOptionsSaml options) { - this.options = Optional.ofNullable(options); - return this; - } - public CreateConnectionRequestContentSaml build() { return new CreateConnectionRequestContentSaml( name, @@ -342,9 +315,8 @@ public CreateConnectionRequestContentSaml build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + showAsButton, additionalProperties); } } 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 658bf1407..319246e0e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSharepoint.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSharepoint.java @@ -36,12 +36,10 @@ public final class CreateConnectionRequestContentSharepoint implements ICreateCo private final Optional>> metadata; - private final Optional> realms; + private final Optional options; private final Optional showAsButton; - private final Optional options; - private final Map additionalProperties; private CreateConnectionRequestContentSharepoint( @@ -52,9 +50,8 @@ private CreateConnectionRequestContentSharepoint( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, + Optional showAsButton, Map additionalProperties) { this.name = name; this.authentication = authentication; @@ -63,9 +60,8 @@ private CreateConnectionRequestContentSharepoint( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; + this.showAsButton = showAsButton; this.additionalProperties = additionalProperties; } @@ -111,18 +107,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "sharepoint"; @@ -133,6 +117,11 @@ public Optional getOptions() { return options; } + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -153,9 +142,8 @@ private boolean equalTo(CreateConnectionRequestContentSharepoint other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) - && options.equals(other.options); + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); } @java.lang.Override @@ -168,9 +156,8 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, - this.options); + this.options, + this.showAsButton); } @java.lang.Override @@ -198,12 +185,10 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); + private Optional options = Optional.empty(); private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -217,9 +202,8 @@ public Builder from(CreateConnectionRequestContentSharepoint other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); + showAsButton(other.getShowAsButton()); return this; } @@ -300,14 +284,14 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; return this; } - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); return this; } @@ -322,17 +306,6 @@ public Builder showAsButton(Boolean showAsButton) { return this; } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional options) { - this.options = options; - return this; - } - - public Builder options(ConnectionOptionsOAuth2Common options) { - this.options = Optional.ofNullable(options); - return this; - } - public CreateConnectionRequestContentSharepoint build() { return new CreateConnectionRequestContentSharepoint( name, @@ -342,9 +315,8 @@ public CreateConnectionRequestContentSharepoint build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, + showAsButton, additionalProperties); } } 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 957c4298c..9db1ab7f4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShop.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShop.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentShop implements ICreateConnecti private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentShop( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentShop( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "shop"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentShop other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentShop other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentShop build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 6bf0681a5..7cb7cdba4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShopify.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShopify.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentShopify implements ICreateConne private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentShopify( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentShopify( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "shopify"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentShopify other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentShopify other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentShopify build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 22f7933a1..af3ca47d5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSms.java @@ -36,11 +36,7 @@ public final class CreateConnectionRequestContentSms implements ICreateConnectio private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - - private final Optional> options; + private final Optional options; private final Map additionalProperties; @@ -52,9 +48,7 @@ private CreateConnectionRequestContentSms( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, - Optional> options, + Optional options, Map additionalProperties) { this.name = name; this.authentication = authentication; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentSms( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,25 +103,13 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "sms"; } @JsonProperty("options") - public Optional> getOptions() { + public Optional getOptions() { return options; } @@ -152,8 +132,6 @@ private boolean equalTo(CreateConnectionRequestContentSms other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -167,8 +145,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -197,11 +173,7 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - - private Optional> options = Optional.empty(); + private Optional options = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -216,8 +188,6 @@ public Builder from(CreateConnectionRequestContentSms other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -299,35 +269,13 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public Builder options(Optional> options) { + public Builder options(Optional options) { this.options = options; return this; } - public Builder options(Map options) { + public Builder options(ConnectionOptionsSms options) { this.options = Optional.ofNullable(options); return this; } @@ -341,8 +289,6 @@ public CreateConnectionRequestContentSms build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 494361d07..6a45e10ce 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSoundcloud.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSoundcloud.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentSoundcloud implements ICreateCo private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentSoundcloud( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentSoundcloud( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "soundcloud"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentSoundcloud other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentSoundcloud other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentSoundcloud build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTheCity.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTheCity.java index 20149f8e5..43673f5e3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTheCity.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTheCity.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentTheCity implements ICreateConne private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentTheCity( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentTheCity( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "thecity"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentTheCity other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentTheCity other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentTheCity build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTheCitySandbox.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTheCitySandbox.java index f58a258e5..48b2575a1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTheCitySandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTheCitySandbox.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentTheCitySandbox implements ICrea private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentTheCitySandbox( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentTheCitySandbox( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "thecity-sandbox"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentTheCitySandbox other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentTheCitySandbox other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentTheCitySandbox build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 acc8bc566..2868da4ac 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentThirtySevenSignals.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentThirtySevenSignals.java @@ -37,10 +37,6 @@ public final class CreateConnectionRequestContentThirtySevenSignals private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -53,8 +49,6 @@ private CreateConnectionRequestContentThirtySevenSignals( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -64,8 +58,6 @@ private CreateConnectionRequestContentThirtySevenSignals( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -112,18 +104,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "thirtysevensignals"; @@ -154,8 +134,6 @@ private boolean equalTo(CreateConnectionRequestContentThirtySevenSignals other) && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -169,8 +147,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -199,10 +175,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -218,8 +190,6 @@ public Builder from(CreateConnectionRequestContentThirtySevenSignals other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -301,28 +271,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -343,8 +291,6 @@ public CreateConnectionRequestContentThirtySevenSignals build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 e725173cd..e3bc84ead 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTwitter.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTwitter.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentTwitter implements ICreateConne private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentTwitter( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentTwitter( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "twitter"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentTwitter other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentTwitter other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentTwitter build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 294dc7f99..382e133fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentUntappd.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentUntappd.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentUntappd implements ICreateConne private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentUntappd( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentUntappd( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "untappd"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentUntappd other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentUntappd other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentUntappd build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 15ac0e813..065ce1d84 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentVkontakte.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentVkontakte.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentVkontakte implements ICreateCon private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentVkontakte( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentVkontakte( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "vkontakte"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentVkontakte other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentVkontakte other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentVkontakte build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 e281424eb..a8ed35686 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWeibo.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWeibo.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentWeibo implements ICreateConnect private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentWeibo( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentWeibo( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "weibo"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentWeibo other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentWeibo other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentWeibo build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 61cd2a46f..05eda6d6b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWindowsLive.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWindowsLive.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentWindowsLive implements ICreateC private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional> options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentWindowsLive( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional> options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentWindowsLive( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "windowslive"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentWindowsLive other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional> options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentWindowsLive other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional> options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentWindowsLive build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 5b88e39e7..a4e9e734c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWordpress.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWordpress.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentWordpress implements ICreateCon private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentWordpress( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentWordpress( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "wordpress"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentWordpress other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentWordpress other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentWordpress build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 745b53df2..bfcf02a00 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYahoo.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYahoo.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentYahoo implements ICreateConnect private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentYahoo( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentYahoo( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "yahoo"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentYahoo other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentYahoo other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentYahoo build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 bffb90b31..8a522a88c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYammer.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYammer.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentYammer implements ICreateConnec private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentYammer( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentYammer( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "yammer"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentYammer other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentYammer other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentYammer build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 348b89382..405eed0e8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYandex.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYandex.java @@ -36,10 +36,6 @@ public final class CreateConnectionRequestContentYandex implements ICreateConnec private final Optional>> metadata; - private final Optional> realms; - - private final Optional showAsButton; - private final Optional options; private final Map additionalProperties; @@ -52,8 +48,6 @@ private CreateConnectionRequestContentYandex( Optional> enabledClients, Optional isDomainConnection, Optional>> metadata, - Optional> realms, - Optional showAsButton, Optional options, Map additionalProperties) { this.name = name; @@ -63,8 +57,6 @@ private CreateConnectionRequestContentYandex( this.enabledClients = enabledClients; this.isDomainConnection = isDomainConnection; this.metadata = metadata; - this.realms = realms; - this.showAsButton = showAsButton; this.options = options; this.additionalProperties = additionalProperties; } @@ -111,18 +103,6 @@ public Optional>> getMetadata() { return metadata; } - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("show_as_button") - @java.lang.Override - public Optional getShowAsButton() { - return showAsButton; - } - @JsonProperty("strategy") public String getStrategy() { return "yandex"; @@ -153,8 +133,6 @@ private boolean equalTo(CreateConnectionRequestContentYandex other) { && enabledClients.equals(other.enabledClients) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) - && realms.equals(other.realms) - && showAsButton.equals(other.showAsButton) && options.equals(other.options); } @@ -168,8 +146,6 @@ public int hashCode() { this.enabledClients, this.isDomainConnection, this.metadata, - this.realms, - this.showAsButton, this.options); } @@ -198,10 +174,6 @@ public static final class Builder { private Optional>> metadata = Optional.empty(); - private Optional> realms = Optional.empty(); - - private Optional showAsButton = Optional.empty(); - private Optional options = Optional.empty(); @JsonAnySetter @@ -217,8 +189,6 @@ public Builder from(CreateConnectionRequestContentYandex other) { enabledClients(other.getEnabledClients()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); - realms(other.getRealms()); - showAsButton(other.getShowAsButton()); options(other.getOptions()); return this; } @@ -300,28 +270,6 @@ public Builder metadata(Map> metadata) { return this; } - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public Builder realms(Optional> realms) { - this.realms = realms; - return this; - } - - public Builder realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) - public Builder showAsButton(Optional showAsButton) { - this.showAsButton = showAsButton; - return this; - } - - public Builder showAsButton(Boolean showAsButton) { - this.showAsButton = Optional.ofNullable(showAsButton); - return this; - } - @JsonSetter(value = "options", nulls = Nulls.SKIP) public Builder options(Optional options) { this.options = options; @@ -342,8 +290,6 @@ public CreateConnectionRequestContentYandex build() { enabledClients, isDomainConnection, metadata, - realms, - showAsButton, options, additionalProperties); } 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 0c10e3c9a..ceefb30c9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CustomDomain.java +++ b/src/main/java/com/auth0/client/mgmt/types/CustomDomain.java @@ -30,6 +30,8 @@ public final class CustomDomain { private final boolean primary; + private final Optional isDefault; + private final CustomDomainStatusFilterEnum status; private final CustomDomainTypeEnum type; @@ -52,6 +54,7 @@ private CustomDomain( String customDomainId, String domain, boolean primary, + Optional isDefault, CustomDomainStatusFilterEnum status, CustomDomainTypeEnum type, Optional originDomainName, @@ -64,6 +67,7 @@ private CustomDomain( this.customDomainId = customDomainId; this.domain = domain; this.primary = primary; + this.isDefault = isDefault; this.status = status; this.type = type; this.originDomainName = originDomainName; @@ -99,6 +103,14 @@ public boolean getPrimary() { return primary; } + /** + * @return Whether this is the default custom domain (true) or not (false). + */ + @JsonProperty("is_default") + public Optional getIsDefault() { + return isDefault; + } + @JsonProperty("status") public CustomDomainStatusFilterEnum getStatus() { return status; @@ -173,6 +185,7 @@ private boolean equalTo(CustomDomain other) { return customDomainId.equals(other.customDomainId) && domain.equals(other.domain) && primary == other.primary + && isDefault.equals(other.isDefault) && status.equals(other.status) && type.equals(other.type) && originDomainName.equals(other.originDomainName) @@ -189,6 +202,7 @@ public int hashCode() { this.customDomainId, this.domain, this.primary, + this.isDefault, this.status, this.type, this.originDomainName, @@ -242,6 +256,13 @@ public interface TypeStage { public interface _FinalStage { CustomDomain build(); + /** + *

Whether this is the default custom domain (true) or not (false).

+ */ + _FinalStage isDefault(Optional isDefault); + + _FinalStage isDefault(Boolean isDefault); + /** *

Intermediate address.

*/ @@ -305,6 +326,8 @@ public static final class Builder private Optional originDomainName = Optional.empty(); + private Optional isDefault = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -315,6 +338,7 @@ public Builder from(CustomDomain other) { customDomainId(other.getCustomDomainId()); domain(other.getDomain()); primary(other.getPrimary()); + isDefault(other.getIsDefault()); status(other.getStatus()); type(other.getType()); originDomainName(other.getOriginDomainName()); @@ -505,12 +529,33 @@ public _FinalStage originDomainName(Optional originDomainName) { return this; } + /** + *

Whether this is the default custom domain (true) or not (false).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDefault(Boolean isDefault) { + this.isDefault = Optional.ofNullable(isDefault); + return this; + } + + /** + *

Whether this is the default custom domain (true) or not (false).

+ */ + @java.lang.Override + @JsonSetter(value = "is_default", nulls = Nulls.SKIP) + public _FinalStage isDefault(Optional isDefault) { + this.isDefault = isDefault; + return this; + } + @java.lang.Override public CustomDomain build() { return new CustomDomain( customDomainId, domain, primary, + isDefault, status, type, originDomainName, diff --git a/src/main/java/com/auth0/client/mgmt/types/DefaultMethodEmailIdentifierEnum.java b/src/main/java/com/auth0/client/mgmt/types/DefaultMethodEmailIdentifierEnum.java new file mode 100644 index 000000000..092b4d9a5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/DefaultMethodEmailIdentifierEnum.java @@ -0,0 +1,86 @@ +/** + * 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 DefaultMethodEmailIdentifierEnum { + public static final DefaultMethodEmailIdentifierEnum PASSWORD = + new DefaultMethodEmailIdentifierEnum(Value.PASSWORD, "password"); + + public static final DefaultMethodEmailIdentifierEnum EMAIL_OTP = + new DefaultMethodEmailIdentifierEnum(Value.EMAIL_OTP, "email_otp"); + + private final Value value; + + private final String string; + + DefaultMethodEmailIdentifierEnum(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 DefaultMethodEmailIdentifierEnum + && this.string.equals(((DefaultMethodEmailIdentifierEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PASSWORD: + return visitor.visitPassword(); + case EMAIL_OTP: + return visitor.visitEmailOtp(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static DefaultMethodEmailIdentifierEnum valueOf(String value) { + switch (value) { + case "password": + return PASSWORD; + case "email_otp": + return EMAIL_OTP; + default: + return new DefaultMethodEmailIdentifierEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + PASSWORD, + + EMAIL_OTP, + + UNKNOWN + } + + public interface Visitor { + T visitPassword(); + + T visitEmailOtp(); + + T visitUnknown(String unknownType); + } +} 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 3ae5e784b..9c53ce7a5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java @@ -32,9 +32,9 @@ public final class GetAculResponseContent { private final Optional renderingMode; - private final Optional> contextConfiguration; + private final Optional> contextConfiguration; - private final Optional defaultHeadTagsDisabled; + private final OptionalNullable defaultHeadTagsDisabled; private final OptionalNullable usePageTemplate; @@ -49,8 +49,8 @@ private GetAculResponseContent( Optional prompt, Optional screen, Optional renderingMode, - Optional> contextConfiguration, - Optional defaultHeadTagsDisabled, + Optional> contextConfiguration, + OptionalNullable defaultHeadTagsDisabled, OptionalNullable usePageTemplate, Optional> headTags, OptionalNullable filters, @@ -96,19 +96,20 @@ public Optional getRenderingMode() { return renderingMode; } - /** - * @return Context values to make available - */ @JsonProperty("context_configuration") - public Optional> getContextConfiguration() { + public Optional> getContextConfiguration() { return contextConfiguration; } /** * @return Override Universal Login default head tags */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("default_head_tags_disabled") - public Optional getDefaultHeadTagsDisabled() { + public OptionalNullable getDefaultHeadTagsDisabled() { + if (defaultHeadTagsDisabled == null) { + return OptionalNullable.absent(); + } return defaultHeadTagsDisabled; } @@ -141,6 +142,12 @@ public OptionalNullable getFilters() { return filters; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("default_head_tags_disabled") + private OptionalNullable _getDefaultHeadTagsDisabled() { + return defaultHeadTagsDisabled; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("use_page_template") private OptionalNullable _getUsePageTemplate() { @@ -209,9 +216,9 @@ public static final class Builder { private Optional renderingMode = Optional.empty(); - private Optional> contextConfiguration = Optional.empty(); + private Optional> contextConfiguration = Optional.empty(); - private Optional defaultHeadTagsDisabled = Optional.empty(); + private OptionalNullable defaultHeadTagsDisabled = OptionalNullable.absent(); private OptionalNullable usePageTemplate = OptionalNullable.absent(); @@ -290,16 +297,13 @@ public Builder renderingMode(AculRenderingModeEnum renderingMode) { return this; } - /** - *

Context values to make available

- */ @JsonSetter(value = "context_configuration", nulls = Nulls.SKIP) - public Builder contextConfiguration(Optional> contextConfiguration) { + public Builder contextConfiguration(Optional> contextConfiguration) { this.contextConfiguration = contextConfiguration; return this; } - public Builder contextConfiguration(List contextConfiguration) { + public Builder contextConfiguration(List contextConfiguration) { this.contextConfiguration = Optional.ofNullable(contextConfiguration); return this; } @@ -308,13 +312,33 @@ public Builder contextConfiguration(List contextConfiguration) { *

Override Universal Login default head tags

*/ @JsonSetter(value = "default_head_tags_disabled", nulls = Nulls.SKIP) - public Builder defaultHeadTagsDisabled(Optional defaultHeadTagsDisabled) { + public Builder defaultHeadTagsDisabled(@Nullable OptionalNullable defaultHeadTagsDisabled) { this.defaultHeadTagsDisabled = defaultHeadTagsDisabled; return this; } public Builder defaultHeadTagsDisabled(Boolean defaultHeadTagsDisabled) { - this.defaultHeadTagsDisabled = Optional.ofNullable(defaultHeadTagsDisabled); + this.defaultHeadTagsDisabled = OptionalNullable.of(defaultHeadTagsDisabled); + return this; + } + + public Builder defaultHeadTagsDisabled(Optional defaultHeadTagsDisabled) { + if (defaultHeadTagsDisabled.isPresent()) { + this.defaultHeadTagsDisabled = OptionalNullable.of(defaultHeadTagsDisabled.get()); + } else { + this.defaultHeadTagsDisabled = OptionalNullable.absent(); + } + return this; + } + + public Builder defaultHeadTagsDisabled(com.auth0.client.mgmt.core.Nullable defaultHeadTagsDisabled) { + if (defaultHeadTagsDisabled.isNull()) { + this.defaultHeadTagsDisabled = OptionalNullable.ofNull(); + } else if (defaultHeadTagsDisabled.isEmpty()) { + this.defaultHeadTagsDisabled = OptionalNullable.absent(); + } else { + this.defaultHeadTagsDisabled = OptionalNullable.of(defaultHeadTagsDisabled.get()); + } 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 c259db4b5..fbe383254 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetCustomDomainResponseContent.java @@ -30,6 +30,8 @@ public final class GetCustomDomainResponseContent { private final boolean primary; + private final Optional isDefault; + private final CustomDomainStatusFilterEnum status; private final CustomDomainTypeEnum type; @@ -52,6 +54,7 @@ private GetCustomDomainResponseContent( String customDomainId, String domain, boolean primary, + Optional isDefault, CustomDomainStatusFilterEnum status, CustomDomainTypeEnum type, Optional originDomainName, @@ -64,6 +67,7 @@ private GetCustomDomainResponseContent( this.customDomainId = customDomainId; this.domain = domain; this.primary = primary; + this.isDefault = isDefault; this.status = status; this.type = type; this.originDomainName = originDomainName; @@ -99,6 +103,14 @@ public boolean getPrimary() { return primary; } + /** + * @return Whether this is the default custom domain (true) or not (false). + */ + @JsonProperty("is_default") + public Optional getIsDefault() { + return isDefault; + } + @JsonProperty("status") public CustomDomainStatusFilterEnum getStatus() { return status; @@ -173,6 +185,7 @@ private boolean equalTo(GetCustomDomainResponseContent other) { return customDomainId.equals(other.customDomainId) && domain.equals(other.domain) && primary == other.primary + && isDefault.equals(other.isDefault) && status.equals(other.status) && type.equals(other.type) && originDomainName.equals(other.originDomainName) @@ -189,6 +202,7 @@ public int hashCode() { this.customDomainId, this.domain, this.primary, + this.isDefault, this.status, this.type, this.originDomainName, @@ -242,6 +256,13 @@ public interface TypeStage { public interface _FinalStage { GetCustomDomainResponseContent build(); + /** + *

Whether this is the default custom domain (true) or not (false).

+ */ + _FinalStage isDefault(Optional isDefault); + + _FinalStage isDefault(Boolean isDefault); + /** *

Intermediate address.

*/ @@ -305,6 +326,8 @@ public static final class Builder private Optional originDomainName = Optional.empty(); + private Optional isDefault = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -315,6 +338,7 @@ public Builder from(GetCustomDomainResponseContent other) { customDomainId(other.getCustomDomainId()); domain(other.getDomain()); primary(other.getPrimary()); + isDefault(other.getIsDefault()); status(other.getStatus()); type(other.getType()); originDomainName(other.getOriginDomainName()); @@ -505,12 +529,33 @@ public _FinalStage originDomainName(Optional originDomainName) { return this; } + /** + *

Whether this is the default custom domain (true) or not (false).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDefault(Boolean isDefault) { + this.isDefault = Optional.ofNullable(isDefault); + return this; + } + + /** + *

Whether this is the default custom domain (true) or not (false).

+ */ + @java.lang.Override + @JsonSetter(value = "is_default", nulls = Nulls.SKIP) + public _FinalStage isDefault(Optional isDefault) { + this.isDefault = isDefault; + return this; + } + @java.lang.Override public GetCustomDomainResponseContent build() { return new GetCustomDomainResponseContent( customDomainId, domain, primary, + isDefault, status, type, originDomainName, diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGroupMembersResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGroupMembersResponseContent.java new file mode 100644 index 000000000..6baabfb08 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/GetGroupMembersResponseContent.java @@ -0,0 +1,136 @@ +/** + * 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.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = GetGroupMembersResponseContent.Builder.class) +public final class GetGroupMembersResponseContent { + private final List members; + + private final Optional next; + + private final Map additionalProperties; + + private GetGroupMembersResponseContent( + List members, Optional next, Map additionalProperties) { + this.members = members; + this.next = next; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("members") + public List getMembers() { + return members; + } + + /** + * @return A cursor to be used as the "from" query parameter for the next page of results. + */ + @JsonProperty("next") + public Optional getNext() { + return next; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof GetGroupMembersResponseContent && equalTo((GetGroupMembersResponseContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(GetGroupMembersResponseContent other) { + return members.equals(other.members) && next.equals(other.next); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.members, this.next); + } + + @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 List members = new ArrayList<>(); + + private Optional next = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(GetGroupMembersResponseContent other) { + members(other.getMembers()); + next(other.getNext()); + return this; + } + + @JsonSetter(value = "members", nulls = Nulls.SKIP) + public Builder members(List members) { + this.members.clear(); + if (members != null) { + this.members.addAll(members); + } + return this; + } + + public Builder addMembers(GroupMember members) { + this.members.add(members); + return this; + } + + public Builder addAllMembers(List members) { + if (members != null) { + this.members.addAll(members); + } + return this; + } + + /** + *

A cursor to be used as the "from" query parameter for the next page of results.

+ */ + @JsonSetter(value = "next", nulls = Nulls.SKIP) + public Builder next(Optional next) { + this.next = next; + return this; + } + + public Builder next(String next) { + this.next = Optional.ofNullable(next); + return this; + } + + public GetGroupMembersResponseContent build() { + return new GetGroupMembersResponseContent(members, next, additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java new file mode 100644 index 000000000..68c342ed5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java @@ -0,0 +1,520 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.NullableNonemptyFilter; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = GetGroupResponseContent.Builder.class) +public final class GetGroupResponseContent { + private final String id; + + private final String name; + + private final Optional externalId; + + private final Optional connectionId; + + private final OptionalNullable organizationId; + + private final String tenantName; + + private final OptionalNullable description; + + private final OffsetDateTime createdAt; + + private final OffsetDateTime updatedAt; + + private final Map additionalProperties; + + private GetGroupResponseContent( + String id, + String name, + Optional externalId, + Optional connectionId, + OptionalNullable organizationId, + String tenantName, + OptionalNullable description, + OffsetDateTime createdAt, + OffsetDateTime updatedAt, + Map additionalProperties) { + this.id = id; + this.name = name; + this.externalId = externalId; + this.connectionId = connectionId; + this.organizationId = organizationId; + this.tenantName = tenantName; + this.description = description; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.additionalProperties = additionalProperties; + } + + /** + * @return Unique identifier for the group (service-generated). + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return Name of the group. Must be unique within its scope (connection, organization, or tenant). Must contain between 1 and 128 printable ASCII characters. + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return External identifier for the group, often used for SCIM synchronization. Max length of 256 characters. + */ + @JsonProperty("external_id") + public Optional getExternalId() { + return externalId; + } + + /** + * @return Identifier for the connection this group belongs to (if a connection group). + */ + @JsonProperty("connection_id") + public Optional getConnectionId() { + return connectionId; + } + + /** + * @return Identifier for the organization this group belongs to (if an organization group). + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("organization_id") + public OptionalNullable getOrganizationId() { + if (organizationId == null) { + return OptionalNullable.absent(); + } + return organizationId; + } + + /** + * @return Identifier for the tenant this group belongs to. + */ + @JsonProperty("tenant_name") + public String getTenantName() { + return tenantName; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("description") + public OptionalNullable getDescription() { + if (description == null) { + return OptionalNullable.absent(); + } + return description; + } + + /** + * @return Timestamp of when the group was created. + */ + @JsonProperty("created_at") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + /** + * @return Timestamp of when the group was last updated. + */ + @JsonProperty("updated_at") + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("organization_id") + private OptionalNullable _getOrganizationId() { + return organizationId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("description") + private OptionalNullable _getDescription() { + return description; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof GetGroupResponseContent && equalTo((GetGroupResponseContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(GetGroupResponseContent other) { + return id.equals(other.id) + && name.equals(other.name) + && externalId.equals(other.externalId) + && connectionId.equals(other.connectionId) + && organizationId.equals(other.organizationId) + && tenantName.equals(other.tenantName) + && description.equals(other.description) + && createdAt.equals(other.createdAt) + && updatedAt.equals(other.updatedAt); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.id, + this.name, + this.externalId, + this.connectionId, + this.organizationId, + this.tenantName, + this.description, + this.createdAt, + this.updatedAt); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

Unique identifier for the group (service-generated).

+ */ + NameStage id(@NotNull String id); + + Builder from(GetGroupResponseContent other); + } + + public interface NameStage { + /** + *

Name of the group. Must be unique within its scope (connection, organization, or tenant). Must contain between 1 and 128 printable ASCII characters.

+ */ + TenantNameStage name(@NotNull String name); + } + + public interface TenantNameStage { + /** + *

Identifier for the tenant this group belongs to.

+ */ + CreatedAtStage tenantName(@NotNull String tenantName); + } + + public interface CreatedAtStage { + /** + *

Timestamp of when the group was created.

+ */ + UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt); + } + + public interface UpdatedAtStage { + /** + *

Timestamp of when the group was last updated.

+ */ + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); + } + + public interface _FinalStage { + GetGroupResponseContent build(); + + /** + *

External identifier for the group, often used for SCIM synchronization. Max length of 256 characters.

+ */ + _FinalStage externalId(Optional externalId); + + _FinalStage externalId(String externalId); + + /** + *

Identifier for the connection this group belongs to (if a connection group).

+ */ + _FinalStage connectionId(Optional connectionId); + + _FinalStage connectionId(String connectionId); + + /** + *

Identifier for the organization this group belongs to (if an organization group).

+ */ + _FinalStage organizationId(@Nullable OptionalNullable organizationId); + + _FinalStage organizationId(String organizationId); + + _FinalStage organizationId(Optional organizationId); + + _FinalStage organizationId(com.auth0.client.mgmt.core.Nullable organizationId); + + _FinalStage description(@Nullable OptionalNullable description); + + _FinalStage description(String description); + + _FinalStage description(Optional description); + + _FinalStage description(com.auth0.client.mgmt.core.Nullable description); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements IdStage, NameStage, TenantNameStage, CreatedAtStage, UpdatedAtStage, _FinalStage { + private String id; + + private String name; + + private String tenantName; + + private OffsetDateTime createdAt; + + private OffsetDateTime updatedAt; + + private OptionalNullable description = OptionalNullable.absent(); + + private OptionalNullable organizationId = OptionalNullable.absent(); + + private Optional connectionId = Optional.empty(); + + private Optional externalId = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(GetGroupResponseContent other) { + id(other.getId()); + name(other.getName()); + externalId(other.getExternalId()); + connectionId(other.getConnectionId()); + organizationId(other.getOrganizationId()); + tenantName(other.getTenantName()); + description(other.getDescription()); + createdAt(other.getCreatedAt()); + updatedAt(other.getUpdatedAt()); + return this; + } + + /** + *

Unique identifier for the group (service-generated).

+ *

Unique identifier for the group (service-generated).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

Name of the group. Must be unique within its scope (connection, organization, or tenant). Must contain between 1 and 128 printable ASCII characters.

+ *

Name of the group. Must be unique within its scope (connection, organization, or tenant). Must contain between 1 and 128 printable ASCII characters.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public TenantNameStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + /** + *

Identifier for the tenant this group belongs to.

+ *

Identifier for the tenant this group belongs to.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("tenant_name") + public CreatedAtStage tenantName(@NotNull String tenantName) { + this.tenantName = Objects.requireNonNull(tenantName, "tenantName must not be null"); + return this; + } + + /** + *

Timestamp of when the group was created.

+ *

Timestamp of when the group was created.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("created_at") + public UpdatedAtStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); + return this; + } + + /** + *

Timestamp of when the group was last updated.

+ *

Timestamp of when the group was last updated.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("updated_at") + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage description(com.auth0.client.mgmt.core.Nullable description) { + if (description.isNull()) { + this.description = OptionalNullable.ofNull(); + } else if (description.isEmpty()) { + this.description = OptionalNullable.absent(); + } else { + this.description = OptionalNullable.of(description.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage description(Optional description) { + if (description.isPresent()) { + this.description = OptionalNullable.of(description.get()); + } else { + this.description = OptionalNullable.absent(); + } + return this; + } + + @java.lang.Override + public _FinalStage description(String description) { + this.description = OptionalNullable.of(description); + return this; + } + + @java.lang.Override + @JsonSetter(value = "description", nulls = Nulls.SKIP) + public _FinalStage description(@Nullable OptionalNullable description) { + this.description = description; + return this; + } + + /** + *

Identifier for the organization this group belongs to (if an organization group).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage organizationId(com.auth0.client.mgmt.core.Nullable organizationId) { + if (organizationId.isNull()) { + this.organizationId = OptionalNullable.ofNull(); + } else if (organizationId.isEmpty()) { + this.organizationId = OptionalNullable.absent(); + } else { + this.organizationId = OptionalNullable.of(organizationId.get()); + } + return this; + } + + /** + *

Identifier for the organization this group belongs to (if an organization group).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage organizationId(Optional organizationId) { + if (organizationId.isPresent()) { + this.organizationId = OptionalNullable.of(organizationId.get()); + } else { + this.organizationId = OptionalNullable.absent(); + } + return this; + } + + /** + *

Identifier for the organization this group belongs to (if an organization group).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage organizationId(String organizationId) { + this.organizationId = OptionalNullable.of(organizationId); + return this; + } + + /** + *

Identifier for the organization this group belongs to (if an organization group).

+ */ + @java.lang.Override + @JsonSetter(value = "organization_id", nulls = Nulls.SKIP) + public _FinalStage organizationId(@Nullable OptionalNullable organizationId) { + this.organizationId = organizationId; + return this; + } + + /** + *

Identifier for the connection this group belongs to (if a connection group).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage connectionId(String connectionId) { + this.connectionId = Optional.ofNullable(connectionId); + return this; + } + + /** + *

Identifier for the connection this group belongs to (if a connection group).

+ */ + @java.lang.Override + @JsonSetter(value = "connection_id", nulls = Nulls.SKIP) + public _FinalStage connectionId(Optional connectionId) { + this.connectionId = connectionId; + return this; + } + + /** + *

External identifier for the group, often used for SCIM synchronization. Max length of 256 characters.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage externalId(String externalId) { + this.externalId = Optional.ofNullable(externalId); + return this; + } + + /** + *

External identifier for the group, often used for SCIM synchronization. Max length of 256 characters.

+ */ + @java.lang.Override + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public _FinalStage externalId(Optional externalId) { + this.externalId = externalId; + return this; + } + + @java.lang.Override + public GetGroupResponseContent build() { + return new GetGroupResponseContent( + id, + name, + externalId, + connectionId, + organizationId, + tenantName, + description, + createdAt, + updatedAt, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/GetUserGroupsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetUserGroupsPaginatedResponseContent.java new file mode 100644 index 000000000..b4c15799a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/GetUserGroupsPaginatedResponseContent.java @@ -0,0 +1,212 @@ +/** + * 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.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = GetUserGroupsPaginatedResponseContent.Builder.class) +public final class GetUserGroupsPaginatedResponseContent { + private final List groups; + + private final Optional next; + + private final Optional start; + + private final Optional limit; + + private final Optional total; + + private final Map additionalProperties; + + private GetUserGroupsPaginatedResponseContent( + List groups, + Optional next, + Optional start, + Optional limit, + Optional total, + Map additionalProperties) { + this.groups = groups; + this.next = next; + this.start = start; + this.limit = limit; + this.total = total; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("groups") + public List getGroups() { + return groups; + } + + /** + * @return A cursor to be used as the "from" query parameter for the next page of results. + */ + @JsonProperty("next") + public Optional getNext() { + return next; + } + + @JsonProperty("start") + public Optional getStart() { + return start; + } + + @JsonProperty("limit") + public Optional getLimit() { + return limit; + } + + @JsonProperty("total") + public Optional getTotal() { + return total; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof GetUserGroupsPaginatedResponseContent + && equalTo((GetUserGroupsPaginatedResponseContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(GetUserGroupsPaginatedResponseContent other) { + return groups.equals(other.groups) + && next.equals(other.next) + && start.equals(other.start) + && limit.equals(other.limit) + && total.equals(other.total); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.groups, this.next, this.start, this.limit, this.total); + } + + @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 List groups = new ArrayList<>(); + + private Optional next = Optional.empty(); + + private Optional start = Optional.empty(); + + private Optional limit = Optional.empty(); + + private Optional total = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(GetUserGroupsPaginatedResponseContent other) { + groups(other.getGroups()); + next(other.getNext()); + start(other.getStart()); + limit(other.getLimit()); + total(other.getTotal()); + return this; + } + + @JsonSetter(value = "groups", nulls = Nulls.SKIP) + public Builder groups(List groups) { + this.groups.clear(); + if (groups != null) { + this.groups.addAll(groups); + } + return this; + } + + public Builder addGroups(UserGroupsResponseSchema groups) { + this.groups.add(groups); + return this; + } + + public Builder addAllGroups(List groups) { + if (groups != null) { + this.groups.addAll(groups); + } + return this; + } + + /** + *

A cursor to be used as the "from" query parameter for the next page of results.

+ */ + @JsonSetter(value = "next", nulls = Nulls.SKIP) + public Builder next(Optional next) { + this.next = next; + return this; + } + + public Builder next(String next) { + this.next = Optional.ofNullable(next); + return this; + } + + @JsonSetter(value = "start", nulls = Nulls.SKIP) + public Builder start(Optional start) { + this.start = start; + return this; + } + + public Builder start(Double start) { + this.start = Optional.ofNullable(start); + return this; + } + + @JsonSetter(value = "limit", nulls = Nulls.SKIP) + public Builder limit(Optional limit) { + this.limit = limit; + return this; + } + + public Builder limit(Double limit) { + this.limit = Optional.ofNullable(limit); + return this; + } + + @JsonSetter(value = "total", nulls = Nulls.SKIP) + public Builder total(Optional total) { + this.total = total; + return this; + } + + public Builder total(Double total) { + this.total = Optional.ofNullable(total); + return this; + } + + public GetUserGroupsPaginatedResponseContent build() { + return new GetUserGroupsPaginatedResponseContent(groups, next, start, limit, total, additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/GroupMember.java b/src/main/java/com/auth0/client/mgmt/types/GroupMember.java new file mode 100644 index 000000000..0b0880e42 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/GroupMember.java @@ -0,0 +1,212 @@ +/** + * 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.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = GroupMember.Builder.class) +public final class GroupMember { + private final Optional id; + + private final Optional memberType; + + private final Optional type; + + private final Optional connectionId; + + private final Optional createdAt; + + private final Map additionalProperties; + + private GroupMember( + Optional id, + Optional memberType, + Optional type, + Optional connectionId, + Optional createdAt, + Map additionalProperties) { + this.id = id; + this.memberType = memberType; + this.type = type; + this.connectionId = connectionId; + this.createdAt = createdAt; + this.additionalProperties = additionalProperties; + } + + /** + * @return Unique identifier for the member. + */ + @JsonProperty("id") + public Optional getId() { + return id; + } + + @JsonProperty("member_type") + public Optional getMemberType() { + return memberType; + } + + @JsonProperty("type") + public Optional getType() { + return type; + } + + /** + * @return Identifier for the connection this group belongs to (if a connection group). + */ + @JsonProperty("connection_id") + public Optional getConnectionId() { + return connectionId; + } + + /** + * @return Timestamp of when the membership was created. + */ + @JsonProperty("created_at") + public Optional getCreatedAt() { + return createdAt; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof GroupMember && equalTo((GroupMember) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(GroupMember other) { + return id.equals(other.id) + && memberType.equals(other.memberType) + && type.equals(other.type) + && connectionId.equals(other.connectionId) + && createdAt.equals(other.createdAt); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.id, this.memberType, this.type, this.connectionId, this.createdAt); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional id = Optional.empty(); + + private Optional memberType = Optional.empty(); + + private Optional type = Optional.empty(); + + private Optional connectionId = Optional.empty(); + + private Optional createdAt = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(GroupMember other) { + id(other.getId()); + memberType(other.getMemberType()); + type(other.getType()); + connectionId(other.getConnectionId()); + createdAt(other.getCreatedAt()); + return this; + } + + /** + *

Unique identifier for the member.

+ */ + @JsonSetter(value = "id", nulls = Nulls.SKIP) + public Builder id(Optional id) { + this.id = id; + return this; + } + + public Builder id(String id) { + this.id = Optional.ofNullable(id); + return this; + } + + @JsonSetter(value = "member_type", nulls = Nulls.SKIP) + public Builder memberType(Optional memberType) { + this.memberType = memberType; + return this; + } + + public Builder memberType(GroupMemberTypeEnum memberType) { + this.memberType = Optional.ofNullable(memberType); + return this; + } + + @JsonSetter(value = "type", nulls = Nulls.SKIP) + public Builder type(Optional type) { + this.type = type; + return this; + } + + public Builder type(GroupTypeEnum type) { + this.type = Optional.ofNullable(type); + return this; + } + + /** + *

Identifier for the connection this group belongs to (if a connection group).

+ */ + @JsonSetter(value = "connection_id", nulls = Nulls.SKIP) + public Builder connectionId(Optional connectionId) { + this.connectionId = connectionId; + return this; + } + + public Builder connectionId(String connectionId) { + this.connectionId = Optional.ofNullable(connectionId); + return this; + } + + /** + *

Timestamp of when the membership was created.

+ */ + @JsonSetter(value = "created_at", nulls = Nulls.SKIP) + public Builder createdAt(Optional createdAt) { + this.createdAt = createdAt; + return this; + } + + public Builder createdAt(OffsetDateTime createdAt) { + this.createdAt = Optional.ofNullable(createdAt); + return this; + } + + public GroupMember build() { + return new GroupMember(id, memberType, type, connectionId, createdAt, additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/GroupMemberTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/GroupMemberTypeEnum.java new file mode 100644 index 000000000..f0b923d9d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/GroupMemberTypeEnum.java @@ -0,0 +1,83 @@ +/** + * 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 GroupMemberTypeEnum { + public static final GroupMemberTypeEnum USER = new GroupMemberTypeEnum(Value.USER, "user"); + + public static final GroupMemberTypeEnum GROUP = new GroupMemberTypeEnum(Value.GROUP, "group"); + + private final Value value; + + private final String string; + + GroupMemberTypeEnum(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 GroupMemberTypeEnum && this.string.equals(((GroupMemberTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case USER: + return visitor.visitUser(); + case GROUP: + return visitor.visitGroup(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static GroupMemberTypeEnum valueOf(String value) { + switch (value) { + case "user": + return USER; + case "group": + return GROUP; + default: + return new GroupMemberTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + USER, + + GROUP, + + UNKNOWN + } + + public interface Visitor { + T visitUser(); + + T visitGroup(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/GroupTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/GroupTypeEnum.java new file mode 100644 index 000000000..65f415174 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/GroupTypeEnum.java @@ -0,0 +1,93 @@ +/** + * 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 GroupTypeEnum { + public static final GroupTypeEnum ORGANIZATION = new GroupTypeEnum(Value.ORGANIZATION, "organization"); + + public static final GroupTypeEnum TENANT = new GroupTypeEnum(Value.TENANT, "tenant"); + + public static final GroupTypeEnum CONNECTION = new GroupTypeEnum(Value.CONNECTION, "connection"); + + private final Value value; + + private final String string; + + GroupTypeEnum(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 GroupTypeEnum && this.string.equals(((GroupTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ORGANIZATION: + return visitor.visitOrganization(); + case TENANT: + return visitor.visitTenant(); + case CONNECTION: + return visitor.visitConnection(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static GroupTypeEnum valueOf(String value) { + switch (value) { + case "organization": + return ORGANIZATION; + case "tenant": + return TENANT; + case "connection": + return CONNECTION; + default: + return new GroupTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION, + + ORGANIZATION, + + TENANT, + + UNKNOWN + } + + public interface Visitor { + T visitConnection(); + + T visitOrganization(); + + T visitTenant(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/IConnectionCommon.java b/src/main/java/com/auth0/client/mgmt/types/IConnectionCommon.java index 967fe0182..0b2e3c0c8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IConnectionCommon.java +++ b/src/main/java/com/auth0/client/mgmt/types/IConnectionCommon.java @@ -20,8 +20,4 @@ public interface IConnectionCommon { Optional getIsDomainConnection(); Optional>> getMetadata(); - - Optional> getRealms(); - - Optional getShowAsButton(); } diff --git a/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonSaml.java b/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonSaml.java new file mode 100644 index 000000000..b2ea9d243 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonSaml.java @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.OptionalNullable; +import java.util.List; +import java.util.Map; +import java.util.Optional; + +public interface IConnectionOptionsCommonSaml { + Optional getCert(); + + Optional getDecryptionKey(); + + Optional getDigestAlgorithm(); + + Optional> getDomainAliases(); + + Optional getEntityId(); + + Optional getIconUrl(); + + Optional getIdpinitiated(); + + Optional getProtocolBinding(); + + Optional getSetUserRootAttributes(); + + Optional getSignInEndpoint(); + + Optional getSignSamlRequest(); + + Optional getSignatureAlgorithm(); + + Optional getTenantDomain(); + + Optional> getThumbprints(); + + OptionalNullable>> getUpstreamParams(); +} 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 4d80bc312..0bb4607fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListAculsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListAculsOffsetPaginatedResponseContent.java @@ -21,7 +21,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListAculsOffsetPaginatedResponseContent.Builder.class) public final class ListAculsOffsetPaginatedResponseContent { - private final Optional> configs; + private final Optional> configs; private final Optional start; @@ -32,7 +32,7 @@ public final class ListAculsOffsetPaginatedResponseContent { private final Map additionalProperties; private ListAculsOffsetPaginatedResponseContent( - Optional> configs, + Optional> configs, Optional start, Optional limit, Optional total, @@ -45,7 +45,7 @@ private ListAculsOffsetPaginatedResponseContent( } @JsonProperty("configs") - public Optional> getConfigs() { + public Optional> getConfigs() { return configs; } @@ -108,7 +108,7 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { - private Optional> configs = Optional.empty(); + private Optional> configs = Optional.empty(); private Optional start = Optional.empty(); @@ -130,12 +130,12 @@ public Builder from(ListAculsOffsetPaginatedResponseContent other) { } @JsonSetter(value = "configs", nulls = Nulls.SKIP) - public Builder configs(Optional> configs) { + public Builder configs(Optional> configs) { this.configs = configs; return this; } - public Builder configs(List configs) { + public Builder configs(List configs) { this.configs = Optional.ofNullable(configs); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java similarity index 76% rename from src/main/java/com/auth0/client/mgmt/types/AculResponseContent.java rename to src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java index 1d0c7a89b..28ab28cc6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java @@ -22,11 +22,17 @@ import org.jetbrains.annotations.Nullable; @JsonInclude(JsonInclude.Include.NON_ABSENT) -@JsonDeserialize(builder = AculResponseContent.Builder.class) -public final class AculResponseContent { +@JsonDeserialize(builder = ListAculsResponseContentItem.Builder.class) +public final class ListAculsResponseContentItem { + private final Optional tenant; + + private final Optional prompt; + + private final Optional screen; + private final Optional renderingMode; - private final Optional> contextConfiguration; + private final Optional> contextConfiguration; private final OptionalNullable defaultHeadTagsDisabled; @@ -38,14 +44,20 @@ public final class AculResponseContent { private final Map additionalProperties; - private AculResponseContent( + private ListAculsResponseContentItem( + Optional tenant, + Optional prompt, + Optional screen, Optional renderingMode, - Optional> contextConfiguration, + Optional> contextConfiguration, OptionalNullable defaultHeadTagsDisabled, OptionalNullable usePageTemplate, Optional> headTags, OptionalNullable filters, Map additionalProperties) { + this.tenant = tenant; + this.prompt = prompt; + this.screen = screen; this.renderingMode = renderingMode; this.contextConfiguration = contextConfiguration; this.defaultHeadTagsDisabled = defaultHeadTagsDisabled; @@ -55,16 +67,37 @@ private AculResponseContent( this.additionalProperties = additionalProperties; } + /** + * @return Tenant ID + */ + @JsonProperty("tenant") + public Optional getTenant() { + return tenant; + } + + /** + * @return Name of the prompt + */ + @JsonProperty("prompt") + public Optional getPrompt() { + return prompt; + } + + /** + * @return Name of the screen + */ + @JsonProperty("screen") + public Optional getScreen() { + return screen; + } + @JsonProperty("rendering_mode") public Optional getRenderingMode() { return renderingMode; } - /** - * @return Context values to make available - */ @JsonProperty("context_configuration") - public Optional> getContextConfiguration() { + public Optional> getContextConfiguration() { return contextConfiguration; } @@ -130,7 +163,7 @@ private OptionalNullable _getFilters() { @java.lang.Override public boolean equals(Object other) { if (this == other) return true; - return other instanceof AculResponseContent && equalTo((AculResponseContent) other); + return other instanceof ListAculsResponseContentItem && equalTo((ListAculsResponseContentItem) other); } @JsonAnyGetter @@ -138,8 +171,11 @@ public Map getAdditionalProperties() { return this.additionalProperties; } - private boolean equalTo(AculResponseContent other) { - return renderingMode.equals(other.renderingMode) + private boolean equalTo(ListAculsResponseContentItem other) { + return tenant.equals(other.tenant) + && prompt.equals(other.prompt) + && screen.equals(other.screen) + && renderingMode.equals(other.renderingMode) && contextConfiguration.equals(other.contextConfiguration) && defaultHeadTagsDisabled.equals(other.defaultHeadTagsDisabled) && usePageTemplate.equals(other.usePageTemplate) @@ -150,6 +186,9 @@ private boolean equalTo(AculResponseContent other) { @java.lang.Override public int hashCode() { return Objects.hash( + this.tenant, + this.prompt, + this.screen, this.renderingMode, this.contextConfiguration, this.defaultHeadTagsDisabled, @@ -169,9 +208,15 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { + private Optional tenant = Optional.empty(); + + private Optional prompt = Optional.empty(); + + private Optional screen = Optional.empty(); + private Optional renderingMode = Optional.empty(); - private Optional> contextConfiguration = Optional.empty(); + private Optional> contextConfiguration = Optional.empty(); private OptionalNullable defaultHeadTagsDisabled = OptionalNullable.absent(); @@ -186,7 +231,10 @@ public static final class Builder { private Builder() {} - public Builder from(AculResponseContent other) { + public Builder from(ListAculsResponseContentItem other) { + tenant(other.getTenant()); + prompt(other.getPrompt()); + screen(other.getScreen()); renderingMode(other.getRenderingMode()); contextConfiguration(other.getContextConfiguration()); defaultHeadTagsDisabled(other.getDefaultHeadTagsDisabled()); @@ -196,6 +244,48 @@ public Builder from(AculResponseContent other) { return this; } + /** + *

Tenant ID

+ */ + @JsonSetter(value = "tenant", nulls = Nulls.SKIP) + public Builder tenant(Optional tenant) { + this.tenant = tenant; + return this; + } + + public Builder tenant(String tenant) { + this.tenant = Optional.ofNullable(tenant); + return this; + } + + /** + *

Name of the prompt

+ */ + @JsonSetter(value = "prompt", nulls = Nulls.SKIP) + public Builder prompt(Optional prompt) { + this.prompt = prompt; + return this; + } + + public Builder prompt(String prompt) { + this.prompt = Optional.ofNullable(prompt); + return this; + } + + /** + *

Name of the screen

+ */ + @JsonSetter(value = "screen", nulls = Nulls.SKIP) + public Builder screen(Optional screen) { + this.screen = screen; + return this; + } + + public Builder screen(String screen) { + this.screen = Optional.ofNullable(screen); + return this; + } + @JsonSetter(value = "rendering_mode", nulls = Nulls.SKIP) public Builder renderingMode(Optional renderingMode) { this.renderingMode = renderingMode; @@ -207,16 +297,13 @@ public Builder renderingMode(AculRenderingModeEnum renderingMode) { return this; } - /** - *

Context values to make available

- */ @JsonSetter(value = "context_configuration", nulls = Nulls.SKIP) - public Builder contextConfiguration(Optional> contextConfiguration) { + public Builder contextConfiguration(Optional> contextConfiguration) { this.contextConfiguration = contextConfiguration; return this; } - public Builder contextConfiguration(List contextConfiguration) { + public Builder contextConfiguration(List contextConfiguration) { this.contextConfiguration = Optional.ofNullable(contextConfiguration); return this; } @@ -334,8 +421,11 @@ public Builder filters(com.auth0.client.mgmt.core.Nullable filters) return this; } - public AculResponseContent build() { - return new AculResponseContent( + public ListAculsResponseContentItem build() { + return new ListAculsResponseContentItem( + tenant, + prompt, + screen, renderingMode, contextConfiguration, defaultHeadTagsDisabled, 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 122e84755..fb24218ab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsResponseContent.java @@ -23,11 +23,16 @@ public final class ListEventStreamsResponseContent { private final Optional> eventStreams; + private final Optional next; + private final Map additionalProperties; private ListEventStreamsResponseContent( - Optional> eventStreams, Map additionalProperties) { + Optional> eventStreams, + Optional next, + Map additionalProperties) { this.eventStreams = eventStreams; + this.next = next; this.additionalProperties = additionalProperties; } @@ -36,6 +41,14 @@ public Optional> getEventStreams() { return eventStreams; } + /** + * @return Opaque identifier for use with the <i>from</i> query parameter for the next page of results. + */ + @JsonProperty("next") + public Optional getNext() { + return next; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -48,12 +61,12 @@ public Map getAdditionalProperties() { } private boolean equalTo(ListEventStreamsResponseContent other) { - return eventStreams.equals(other.eventStreams); + return eventStreams.equals(other.eventStreams) && next.equals(other.next); } @java.lang.Override public int hashCode() { - return Objects.hash(this.eventStreams); + return Objects.hash(this.eventStreams, this.next); } @java.lang.Override @@ -69,6 +82,8 @@ public static Builder builder() { public static final class Builder { private Optional> eventStreams = Optional.empty(); + private Optional next = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -76,6 +91,7 @@ private Builder() {} public Builder from(ListEventStreamsResponseContent other) { eventStreams(other.getEventStreams()); + next(other.getNext()); return this; } @@ -90,8 +106,22 @@ public Builder eventStreams(List eventStreams) { return this; } + /** + *

Opaque identifier for use with the <i>from</i> query parameter for the next page of results.

+ */ + @JsonSetter(value = "next", nulls = Nulls.SKIP) + public Builder next(Optional next) { + this.next = next; + return this; + } + + public Builder next(String next) { + this.next = Optional.ofNullable(next); + return this; + } + public ListEventStreamsResponseContent build() { - return new ListEventStreamsResponseContent(eventStreams, additionalProperties); + return new ListEventStreamsResponseContent(eventStreams, next, additionalProperties); } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListGroupsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListGroupsPaginatedResponseContent.java new file mode 100644 index 000000000..1ff98e7e5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ListGroupsPaginatedResponseContent.java @@ -0,0 +1,212 @@ +/** + * 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.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ListGroupsPaginatedResponseContent.Builder.class) +public final class ListGroupsPaginatedResponseContent { + private final List groups; + + private final Optional next; + + private final Optional start; + + private final Optional limit; + + private final Optional total; + + private final Map additionalProperties; + + private ListGroupsPaginatedResponseContent( + List groups, + Optional next, + Optional start, + Optional limit, + Optional total, + Map additionalProperties) { + this.groups = groups; + this.next = next; + this.start = start; + this.limit = limit; + this.total = total; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("groups") + public List getGroups() { + return groups; + } + + /** + * @return A cursor to be used as the "from" query parameter for the next page of results. + */ + @JsonProperty("next") + public Optional getNext() { + return next; + } + + @JsonProperty("start") + public Optional getStart() { + return start; + } + + @JsonProperty("limit") + public Optional getLimit() { + return limit; + } + + @JsonProperty("total") + public Optional getTotal() { + return total; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ListGroupsPaginatedResponseContent + && equalTo((ListGroupsPaginatedResponseContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ListGroupsPaginatedResponseContent other) { + return groups.equals(other.groups) + && next.equals(other.next) + && start.equals(other.start) + && limit.equals(other.limit) + && total.equals(other.total); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.groups, this.next, this.start, this.limit, this.total); + } + + @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 List groups = new ArrayList<>(); + + private Optional next = Optional.empty(); + + private Optional start = Optional.empty(); + + private Optional limit = Optional.empty(); + + private Optional total = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ListGroupsPaginatedResponseContent other) { + groups(other.getGroups()); + next(other.getNext()); + start(other.getStart()); + limit(other.getLimit()); + total(other.getTotal()); + return this; + } + + @JsonSetter(value = "groups", nulls = Nulls.SKIP) + public Builder groups(List groups) { + this.groups.clear(); + if (groups != null) { + this.groups.addAll(groups); + } + return this; + } + + public Builder addGroups(Group groups) { + this.groups.add(groups); + return this; + } + + public Builder addAllGroups(List groups) { + if (groups != null) { + this.groups.addAll(groups); + } + return this; + } + + /** + *

A cursor to be used as the "from" query parameter for the next page of results.

+ */ + @JsonSetter(value = "next", nulls = Nulls.SKIP) + public Builder next(Optional next) { + this.next = next; + return this; + } + + public Builder next(String next) { + this.next = Optional.ofNullable(next); + return this; + } + + @JsonSetter(value = "start", nulls = Nulls.SKIP) + public Builder start(Optional start) { + this.start = start; + return this; + } + + public Builder start(Double start) { + this.start = Optional.ofNullable(start); + return this; + } + + @JsonSetter(value = "limit", nulls = Nulls.SKIP) + public Builder limit(Optional limit) { + this.limit = limit; + return this; + } + + public Builder limit(Double limit) { + this.limit = Optional.ofNullable(limit); + return this; + } + + @JsonSetter(value = "total", nulls = Nulls.SKIP) + public Builder total(Optional total) { + this.total = total; + return this; + } + + public Builder total(Double total) { + this.total = Optional.ofNullable(total); + return this; + } + + public ListGroupsPaginatedResponseContent build() { + return new ListGroupsPaginatedResponseContent(groups, next, start, limit, total, additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java new file mode 100644 index 000000000..5cf0c078e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java @@ -0,0 +1,489 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.NullableNonemptyFilter; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ListGroupsRequestParameters.Builder.class) +public final class ListGroupsRequestParameters { + private final OptionalNullable connectionId; + + private final OptionalNullable name; + + private final OptionalNullable externalId; + + private final OptionalNullable fields; + + private final OptionalNullable includeFields; + + private final OptionalNullable from; + + private final OptionalNullable take; + + private final Map additionalProperties; + + private ListGroupsRequestParameters( + OptionalNullable connectionId, + OptionalNullable name, + OptionalNullable externalId, + OptionalNullable fields, + OptionalNullable includeFields, + OptionalNullable from, + OptionalNullable take, + Map additionalProperties) { + this.connectionId = connectionId; + this.name = name; + this.externalId = externalId; + this.fields = fields; + this.includeFields = includeFields; + this.from = from; + this.take = take; + this.additionalProperties = additionalProperties; + } + + /** + * @return Filter groups by connection ID. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("connection_id") + public OptionalNullable getConnectionId() { + if (connectionId == null) { + return OptionalNullable.absent(); + } + return connectionId; + } + + /** + * @return Filter groups by name. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("name") + public OptionalNullable getName() { + if (name == null) { + return OptionalNullable.absent(); + } + return name; + } + + /** + * @return Filter groups by external ID. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("external_id") + public OptionalNullable getExternalId() { + if (externalId == null) { + return OptionalNullable.absent(); + } + return externalId; + } + + /** + * @return A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + public OptionalNullable getFields() { + if (fields == null) { + return OptionalNullable.absent(); + } + return fields; + } + + /** + * @return Whether specified fields are to be included (true) or excluded (false). + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + public OptionalNullable getIncludeFields() { + if (includeFields == null) { + return OptionalNullable.absent(); + } + return includeFields; + } + + /** + * @return Optional Id from which to start selection. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + public OptionalNullable getFrom() { + if (from == null) { + return OptionalNullable.absent(); + } + return from; + } + + /** + * @return Number of results per page. Defaults to 50. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + public OptionalNullable getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("connection_id") + private OptionalNullable _getConnectionId() { + return connectionId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("name") + private OptionalNullable _getName() { + return name; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("external_id") + private OptionalNullable _getExternalId() { + return externalId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ListGroupsRequestParameters && equalTo((ListGroupsRequestParameters) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ListGroupsRequestParameters other) { + return connectionId.equals(other.connectionId) + && name.equals(other.name) + && externalId.equals(other.externalId) + && fields.equals(other.fields) + && includeFields.equals(other.includeFields) + && from.equals(other.from) + && take.equals(other.take); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.connectionId, this.name, this.externalId, this.fields, this.includeFields, this.from, this.take); + } + + @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 OptionalNullable connectionId = OptionalNullable.absent(); + + private OptionalNullable name = OptionalNullable.absent(); + + private OptionalNullable externalId = OptionalNullable.absent(); + + private OptionalNullable fields = OptionalNullable.absent(); + + private OptionalNullable includeFields = OptionalNullable.absent(); + + private OptionalNullable from = OptionalNullable.absent(); + + private OptionalNullable take = OptionalNullable.absent(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ListGroupsRequestParameters other) { + connectionId(other.getConnectionId()); + name(other.getName()); + externalId(other.getExternalId()); + fields(other.getFields()); + includeFields(other.getIncludeFields()); + from(other.getFrom()); + take(other.getTake()); + return this; + } + + /** + *

Filter groups by connection ID.

+ */ + @JsonSetter(value = "connection_id", nulls = Nulls.SKIP) + public Builder connectionId(@Nullable OptionalNullable connectionId) { + this.connectionId = connectionId; + return this; + } + + public Builder connectionId(String connectionId) { + this.connectionId = OptionalNullable.of(connectionId); + return this; + } + + public Builder connectionId(Optional connectionId) { + if (connectionId.isPresent()) { + this.connectionId = OptionalNullable.of(connectionId.get()); + } else { + this.connectionId = OptionalNullable.absent(); + } + return this; + } + + public Builder connectionId(com.auth0.client.mgmt.core.Nullable connectionId) { + if (connectionId.isNull()) { + this.connectionId = OptionalNullable.ofNull(); + } else if (connectionId.isEmpty()) { + this.connectionId = OptionalNullable.absent(); + } else { + this.connectionId = OptionalNullable.of(connectionId.get()); + } + return this; + } + + /** + *

Filter groups by name.

+ */ + @JsonSetter(value = "name", nulls = Nulls.SKIP) + public Builder name(@Nullable OptionalNullable name) { + this.name = name; + return this; + } + + public Builder name(String name) { + this.name = OptionalNullable.of(name); + return this; + } + + public Builder name(Optional name) { + if (name.isPresent()) { + this.name = OptionalNullable.of(name.get()); + } else { + this.name = OptionalNullable.absent(); + } + return this; + } + + public Builder name(com.auth0.client.mgmt.core.Nullable name) { + if (name.isNull()) { + this.name = OptionalNullable.ofNull(); + } else if (name.isEmpty()) { + this.name = OptionalNullable.absent(); + } else { + this.name = OptionalNullable.of(name.get()); + } + return this; + } + + /** + *

Filter groups by external ID.

+ */ + @JsonSetter(value = "external_id", nulls = Nulls.SKIP) + public Builder externalId(@Nullable OptionalNullable externalId) { + this.externalId = externalId; + return this; + } + + public Builder externalId(String externalId) { + this.externalId = OptionalNullable.of(externalId); + return this; + } + + public Builder externalId(Optional externalId) { + if (externalId.isPresent()) { + this.externalId = OptionalNullable.of(externalId.get()); + } else { + this.externalId = OptionalNullable.absent(); + } + return this; + } + + public Builder externalId(com.auth0.client.mgmt.core.Nullable externalId) { + if (externalId.isNull()) { + this.externalId = OptionalNullable.ofNull(); + } else if (externalId.isEmpty()) { + this.externalId = OptionalNullable.absent(); + } else { + this.externalId = OptionalNullable.of(externalId.get()); + } + return this; + } + + /** + *

A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields

+ */ + @JsonSetter(value = "fields", nulls = Nulls.SKIP) + public Builder fields(@Nullable OptionalNullable fields) { + this.fields = fields; + return this; + } + + public Builder fields(String fields) { + this.fields = OptionalNullable.of(fields); + return this; + } + + public Builder fields(Optional fields) { + if (fields.isPresent()) { + this.fields = OptionalNullable.of(fields.get()); + } else { + this.fields = OptionalNullable.absent(); + } + return this; + } + + public Builder fields(com.auth0.client.mgmt.core.Nullable fields) { + if (fields.isNull()) { + this.fields = OptionalNullable.ofNull(); + } else if (fields.isEmpty()) { + this.fields = OptionalNullable.absent(); + } else { + this.fields = OptionalNullable.of(fields.get()); + } + return this; + } + + /** + *

Whether specified fields are to be included (true) or excluded (false).

+ */ + @JsonSetter(value = "include_fields", nulls = Nulls.SKIP) + public Builder includeFields(@Nullable OptionalNullable includeFields) { + this.includeFields = includeFields; + return this; + } + + public Builder includeFields(Boolean includeFields) { + this.includeFields = OptionalNullable.of(includeFields); + return this; + } + + public Builder includeFields(Optional includeFields) { + if (includeFields.isPresent()) { + this.includeFields = OptionalNullable.of(includeFields.get()); + } else { + this.includeFields = OptionalNullable.absent(); + } + return this; + } + + public Builder includeFields(com.auth0.client.mgmt.core.Nullable includeFields) { + if (includeFields.isNull()) { + this.includeFields = OptionalNullable.ofNull(); + } else if (includeFields.isEmpty()) { + this.includeFields = OptionalNullable.absent(); + } else { + this.includeFields = OptionalNullable.of(includeFields.get()); + } + return this; + } + + /** + *

Optional Id from which to start selection.

+ */ + @JsonSetter(value = "from", nulls = Nulls.SKIP) + public Builder from(@Nullable OptionalNullable from) { + this.from = from; + return this; + } + + public Builder from(String from) { + this.from = OptionalNullable.of(from); + return this; + } + + public Builder from(Optional from) { + if (from.isPresent()) { + this.from = OptionalNullable.of(from.get()); + } else { + this.from = OptionalNullable.absent(); + } + return this; + } + + public Builder from(com.auth0.client.mgmt.core.Nullable from) { + if (from.isNull()) { + this.from = OptionalNullable.ofNull(); + } else if (from.isEmpty()) { + this.from = OptionalNullable.absent(); + } else { + this.from = OptionalNullable.of(from.get()); + } + return this; + } + + /** + *

Number of results per page. Defaults to 50.

+ */ + @JsonSetter(value = "take", nulls = Nulls.SKIP) + public Builder take(OptionalNullable take) { + this.take = take; + return this; + } + + public Builder take(Integer take) { + this.take = OptionalNullable.of(take); + return this; + } + + public Builder take(Optional take) { + if (take.isPresent()) { + this.take = OptionalNullable.of(take.get()); + } else { + this.take = OptionalNullable.absent(); + } + return this; + } + + public Builder take(com.auth0.client.mgmt.core.Nullable take) { + if (take.isNull()) { + this.take = OptionalNullable.ofNull(); + } else if (take.isEmpty()) { + this.take = OptionalNullable.absent(); + } else { + this.take = OptionalNullable.of(take.get()); + } + return this; + } + + public ListGroupsRequestParameters build() { + return new ListGroupsRequestParameters( + connectionId, name, externalId, fields, includeFields, from, take, additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/OauthScope.java b/src/main/java/com/auth0/client/mgmt/types/OauthScope.java index 0ac8830a1..bb9a76617 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OauthScope.java +++ b/src/main/java/com/auth0/client/mgmt/types/OauthScope.java @@ -235,6 +235,8 @@ public final class OauthScope { public static final OauthScope CREATE_PHONE_PROVIDERS = new OauthScope(Value.CREATE_PHONE_PROVIDERS, "create:phone_providers"); + public static final OauthScope DELETE_GROUP_ROLES = new OauthScope(Value.DELETE_GROUP_ROLES, "delete:group_roles"); + public static final OauthScope DELETE_ORGANIZATION_CLIENT_GRANTS = new OauthScope(Value.DELETE_ORGANIZATION_CLIENT_GRANTS, "delete:organization_client_grants"); @@ -536,6 +538,8 @@ public final class OauthScope { public static final OauthScope CREATE_FLOWS = new OauthScope(Value.CREATE_FLOWS, "create:flows"); + public static final OauthScope CREATE_GROUP_ROLES = new OauthScope(Value.CREATE_GROUP_ROLES, "create:group_roles"); + public static final OauthScope DELETE_HOOKS = new OauthScope(Value.DELETE_HOOKS, "delete:hooks"); public static final OauthScope READ_ORGANIZATIONS = new OauthScope(Value.READ_ORGANIZATIONS, "read:organizations"); @@ -875,6 +879,8 @@ public T visit(Visitor visitor) { return visitor.visitCreateAuthenticationMethods(); case CREATE_PHONE_PROVIDERS: return visitor.visitCreatePhoneProviders(); + case DELETE_GROUP_ROLES: + return visitor.visitDeleteGroupRoles(); case DELETE_ORGANIZATION_CLIENT_GRANTS: return visitor.visitDeleteOrganizationClientGrants(); case CREATE_SCIM_CONFIG: @@ -1103,6 +1109,8 @@ public T visit(Visitor visitor) { return visitor.visitCreateRoleMembers(); case CREATE_FLOWS: return visitor.visitCreateFlows(); + case CREATE_GROUP_ROLES: + return visitor.visitCreateGroupRoles(); case DELETE_HOOKS: return visitor.visitDeleteHooks(); case READ_ORGANIZATIONS: @@ -1386,6 +1394,8 @@ public static OauthScope valueOf(String value) { return CREATE_AUTHENTICATION_METHODS; case "create:phone_providers": return CREATE_PHONE_PROVIDERS; + case "delete:group_roles": + return DELETE_GROUP_ROLES; case "delete:organization_client_grants": return DELETE_ORGANIZATION_CLIENT_GRANTS; case "create:scim_config": @@ -1614,6 +1624,8 @@ public static OauthScope valueOf(String value) { return CREATE_ROLE_MEMBERS; case "create:flows": return CREATE_FLOWS; + case "create:group_roles": + return CREATE_GROUP_ROLES; case "delete:hooks": return DELETE_HOOKS; case "read:organizations": @@ -1938,6 +1950,10 @@ public enum Value { READ_GROUP_MEMBERS, + CREATE_GROUP_ROLES, + + DELETE_GROUP_ROLES, + CREATE_GUARDIAN_ENROLLMENT_TICKETS, READ_GUARDIAN_ENROLLMENTS, @@ -2444,6 +2460,10 @@ public interface Visitor { T visitReadGroupMembers(); + T visitCreateGroupRoles(); + + T visitDeleteGroupRoles(); + T visitCreateGuardianEnrollmentTickets(); T visitReadGuardianEnrollments(); 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 34347e20a..9121be94b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateAculResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateAculResponseContent.java @@ -26,7 +26,7 @@ public final class UpdateAculResponseContent { private final Optional renderingMode; - private final Optional> contextConfiguration; + private final Optional> contextConfiguration; private final OptionalNullable defaultHeadTagsDisabled; @@ -40,7 +40,7 @@ public final class UpdateAculResponseContent { private UpdateAculResponseContent( Optional renderingMode, - Optional> contextConfiguration, + Optional> contextConfiguration, OptionalNullable defaultHeadTagsDisabled, OptionalNullable usePageTemplate, Optional> headTags, @@ -60,11 +60,8 @@ public Optional getRenderingMode() { return renderingMode; } - /** - * @return Context values to make available - */ @JsonProperty("context_configuration") - public Optional> getContextConfiguration() { + public Optional> getContextConfiguration() { return contextConfiguration; } @@ -171,7 +168,7 @@ public static Builder builder() { public static final class Builder { private Optional renderingMode = Optional.empty(); - private Optional> contextConfiguration = Optional.empty(); + private Optional> contextConfiguration = Optional.empty(); private OptionalNullable defaultHeadTagsDisabled = OptionalNullable.absent(); @@ -207,16 +204,13 @@ public Builder renderingMode(AculRenderingModeEnum renderingMode) { return this; } - /** - *

Context values to make available

- */ @JsonSetter(value = "context_configuration", nulls = Nulls.SKIP) - public Builder contextConfiguration(Optional> contextConfiguration) { + public Builder contextConfiguration(Optional> contextConfiguration) { this.contextConfiguration = contextConfiguration; return this; } - public Builder contextConfiguration(List contextConfiguration) { + public Builder contextConfiguration(List contextConfiguration) { this.contextConfiguration = Optional.ofNullable(contextConfiguration); 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 new file mode 100644 index 000000000..0c1ecb27a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAd.java @@ -0,0 +1,264 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentAd.Builder.class) +public final class UpdateConnectionRequestContentAd implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentAd( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentAd && equalTo((UpdateConnectionRequestContentAd) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentAd other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentAd other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentAd build() { + return new UpdateConnectionRequestContentAd( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAdfs.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAdfs.java new file mode 100644 index 000000000..a234622ae --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAdfs.java @@ -0,0 +1,291 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentAdfs.Builder.class) +public final class UpdateConnectionRequestContentAdfs implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Optional showAsButton; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentAdfs( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Optional showAsButton, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.showAsButton = showAsButton; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentAdfs + && equalTo((UpdateConnectionRequestContentAdfs) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentAdfs other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options, + this.showAsButton); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional showAsButton = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentAdfs other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsAdfs options) { + this.options = Optional.ofNullable(options); + return this; + } + + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public Builder showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + public Builder showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + public UpdateConnectionRequestContentAdfs build() { + return new UpdateConnectionRequestContentAdfs( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + showAsButton, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAmazon.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAmazon.java new file mode 100644 index 000000000..564a43f57 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAmazon.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentAmazon.Builder.class) +public final class UpdateConnectionRequestContentAmazon implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentAmazon( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentAmazon + && equalTo((UpdateConnectionRequestContentAmazon) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentAmazon other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentAmazon other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentAmazon build() { + return new UpdateConnectionRequestContentAmazon( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAol.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAol.java new file mode 100644 index 000000000..05ab2ff99 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAol.java @@ -0,0 +1,264 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentAol.Builder.class) +public final class UpdateConnectionRequestContentAol implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentAol( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentAol && equalTo((UpdateConnectionRequestContentAol) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentAol other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentAol other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentAol build() { + return new UpdateConnectionRequestContentAol( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentApple.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentApple.java new file mode 100644 index 000000000..ad6a7e70b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentApple.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentApple.Builder.class) +public final class UpdateConnectionRequestContentApple implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentApple( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentApple + && equalTo((UpdateConnectionRequestContentApple) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentApple other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentApple other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsApple options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentApple build() { + return new UpdateConnectionRequestContentApple( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0.java new file mode 100644 index 000000000..ca856d4f1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0.java @@ -0,0 +1,291 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentAuth0.Builder.class) +public final class UpdateConnectionRequestContentAuth0 implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Optional> realms; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentAuth0( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Optional> realms, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.realms = realms; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentAuth0 + && equalTo((UpdateConnectionRequestContentAuth0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentAuth0 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options) + && realms.equals(other.realms); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options, + this.realms); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentAuth0 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + realms(other.getRealms()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsAuth0 options) { + this.options = Optional.ofNullable(options); + return this; + } + + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public Builder realms(Optional> realms) { + this.realms = realms; + return this; + } + + public Builder realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + public UpdateConnectionRequestContentAuth0 build() { + return new UpdateConnectionRequestContentAuth0( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + realms, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0Oidc.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0Oidc.java new file mode 100644 index 000000000..c0d581b91 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0Oidc.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentAuth0Oidc.Builder.class) +public final class UpdateConnectionRequestContentAuth0Oidc implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentAuth0Oidc( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentAuth0Oidc + && equalTo((UpdateConnectionRequestContentAuth0Oidc) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentAuth0Oidc other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentAuth0Oidc other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentAuth0Oidc build() { + return new UpdateConnectionRequestContentAuth0Oidc( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAzureAd.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAzureAd.java new file mode 100644 index 000000000..1a18f926f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAzureAd.java @@ -0,0 +1,291 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentAzureAd.Builder.class) +public final class UpdateConnectionRequestContentAzureAd implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Optional showAsButton; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentAzureAd( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Optional showAsButton, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.showAsButton = showAsButton; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentAzureAd + && equalTo((UpdateConnectionRequestContentAzureAd) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentAzureAd other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options, + this.showAsButton); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional showAsButton = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentAzureAd other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsAzureAd options) { + this.options = Optional.ofNullable(options); + return this; + } + + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public Builder showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + public Builder showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + public UpdateConnectionRequestContentAzureAd build() { + return new UpdateConnectionRequestContentAzureAd( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + showAsButton, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBaidu.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBaidu.java new file mode 100644 index 000000000..1fc16df8e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBaidu.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentBaidu.Builder.class) +public final class UpdateConnectionRequestContentBaidu implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentBaidu( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentBaidu + && equalTo((UpdateConnectionRequestContentBaidu) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentBaidu other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentBaidu other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentBaidu build() { + return new UpdateConnectionRequestContentBaidu( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitbucket.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitbucket.java new file mode 100644 index 000000000..a0ae25d9c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitbucket.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentBitbucket.Builder.class) +public final class UpdateConnectionRequestContentBitbucket implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentBitbucket( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentBitbucket + && equalTo((UpdateConnectionRequestContentBitbucket) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentBitbucket other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentBitbucket other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentBitbucket build() { + return new UpdateConnectionRequestContentBitbucket( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitly.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitly.java new file mode 100644 index 000000000..97c3fecaa --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitly.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentBitly.Builder.class) +public final class UpdateConnectionRequestContentBitly implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentBitly( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentBitly + && equalTo((UpdateConnectionRequestContentBitly) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentBitly other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentBitly other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentBitly build() { + return new UpdateConnectionRequestContentBitly( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBox.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBox.java new file mode 100644 index 000000000..d79c55161 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBox.java @@ -0,0 +1,264 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentBox.Builder.class) +public final class UpdateConnectionRequestContentBox implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentBox( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentBox && equalTo((UpdateConnectionRequestContentBox) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentBox other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentBox other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentBox build() { + return new UpdateConnectionRequestContentBox( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentCustom.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentCustom.java new file mode 100644 index 000000000..f960d92c8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentCustom.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentCustom.Builder.class) +public final class UpdateConnectionRequestContentCustom implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentCustom( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentCustom + && equalTo((UpdateConnectionRequestContentCustom) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentCustom other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentCustom other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentCustom build() { + return new UpdateConnectionRequestContentCustom( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDaccount.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDaccount.java new file mode 100644 index 000000000..ac559ff40 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDaccount.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentDaccount.Builder.class) +public final class UpdateConnectionRequestContentDaccount implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentDaccount( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentDaccount + && equalTo((UpdateConnectionRequestContentDaccount) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentDaccount other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentDaccount other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentDaccount build() { + return new UpdateConnectionRequestContentDaccount( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDropbox.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDropbox.java new file mode 100644 index 000000000..d58ae402f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDropbox.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentDropbox.Builder.class) +public final class UpdateConnectionRequestContentDropbox implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentDropbox( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentDropbox + && equalTo((UpdateConnectionRequestContentDropbox) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentDropbox other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentDropbox other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentDropbox build() { + return new UpdateConnectionRequestContentDropbox( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDwolla.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDwolla.java new file mode 100644 index 000000000..a15997345 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDwolla.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentDwolla.Builder.class) +public final class UpdateConnectionRequestContentDwolla implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentDwolla( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentDwolla + && equalTo((UpdateConnectionRequestContentDwolla) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentDwolla other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentDwolla other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentDwolla build() { + return new UpdateConnectionRequestContentDwolla( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEmail.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEmail.java new file mode 100644 index 000000000..3f11009b5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEmail.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentEmail.Builder.class) +public final class UpdateConnectionRequestContentEmail implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentEmail( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentEmail + && equalTo((UpdateConnectionRequestContentEmail) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentEmail other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentEmail other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsEmail options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentEmail build() { + return new UpdateConnectionRequestContentEmail( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernote.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernote.java new file mode 100644 index 000000000..9f06d6bdf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernote.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentEvernote.Builder.class) +public final class UpdateConnectionRequestContentEvernote implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentEvernote( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentEvernote + && equalTo((UpdateConnectionRequestContentEvernote) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentEvernote other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentEvernote other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentEvernote build() { + return new UpdateConnectionRequestContentEvernote( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernoteSandbox.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernoteSandbox.java new file mode 100644 index 000000000..c1ba67b80 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernoteSandbox.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentEvernoteSandbox.Builder.class) +public final class UpdateConnectionRequestContentEvernoteSandbox implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentEvernoteSandbox( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentEvernoteSandbox + && equalTo((UpdateConnectionRequestContentEvernoteSandbox) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentEvernoteSandbox other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentEvernoteSandbox other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentEvernoteSandbox build() { + return new UpdateConnectionRequestContentEvernoteSandbox( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentExact.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentExact.java new file mode 100644 index 000000000..e55059773 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentExact.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentExact.Builder.class) +public final class UpdateConnectionRequestContentExact implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentExact( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentExact + && equalTo((UpdateConnectionRequestContentExact) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentExact other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentExact other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentExact build() { + return new UpdateConnectionRequestContentExact( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFacebook.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFacebook.java new file mode 100644 index 000000000..1ff735b20 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFacebook.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentFacebook.Builder.class) +public final class UpdateConnectionRequestContentFacebook implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentFacebook( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentFacebook + && equalTo((UpdateConnectionRequestContentFacebook) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentFacebook other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentFacebook other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentFacebook build() { + return new UpdateConnectionRequestContentFacebook( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFitbit.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFitbit.java new file mode 100644 index 000000000..7317d5d62 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFitbit.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentFitbit.Builder.class) +public final class UpdateConnectionRequestContentFitbit implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentFitbit( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentFitbit + && equalTo((UpdateConnectionRequestContentFitbit) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentFitbit other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentFitbit other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentFitbit build() { + return new UpdateConnectionRequestContentFitbit( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFlickr.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFlickr.java new file mode 100644 index 000000000..83a2d11fa --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFlickr.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentFlickr.Builder.class) +public final class UpdateConnectionRequestContentFlickr implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentFlickr( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentFlickr + && equalTo((UpdateConnectionRequestContentFlickr) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentFlickr other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentFlickr other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentFlickr build() { + return new UpdateConnectionRequestContentFlickr( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGitHub.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGitHub.java new file mode 100644 index 000000000..63d948e0e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGitHub.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentGitHub.Builder.class) +public final class UpdateConnectionRequestContentGitHub implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentGitHub( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentGitHub + && equalTo((UpdateConnectionRequestContentGitHub) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentGitHub other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentGitHub other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentGitHub build() { + return new UpdateConnectionRequestContentGitHub( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleApps.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleApps.java new file mode 100644 index 000000000..7a89fb9e4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleApps.java @@ -0,0 +1,291 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentGoogleApps.Builder.class) +public final class UpdateConnectionRequestContentGoogleApps implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Optional showAsButton; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentGoogleApps( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Optional showAsButton, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.showAsButton = showAsButton; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentGoogleApps + && equalTo((UpdateConnectionRequestContentGoogleApps) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentGoogleApps other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options, + this.showAsButton); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional showAsButton = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentGoogleApps other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsGoogleApps options) { + this.options = Optional.ofNullable(options); + return this; + } + + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public Builder showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + public Builder showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + public UpdateConnectionRequestContentGoogleApps build() { + return new UpdateConnectionRequestContentGoogleApps( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + showAsButton, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleOAuth2.java new file mode 100644 index 000000000..76cc858ad --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleOAuth2.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentGoogleOAuth2.Builder.class) +public final class UpdateConnectionRequestContentGoogleOAuth2 implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentGoogleOAuth2( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentGoogleOAuth2 + && equalTo((UpdateConnectionRequestContentGoogleOAuth2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentGoogleOAuth2 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentGoogleOAuth2 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsGoogleOAuth2 options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentGoogleOAuth2 build() { + return new UpdateConnectionRequestContentGoogleOAuth2( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentInstagram.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentInstagram.java new file mode 100644 index 000000000..c132fe073 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentInstagram.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentInstagram.Builder.class) +public final class UpdateConnectionRequestContentInstagram implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentInstagram( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentInstagram + && equalTo((UpdateConnectionRequestContentInstagram) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentInstagram other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentInstagram other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentInstagram build() { + return new UpdateConnectionRequestContentInstagram( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentIp.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentIp.java new file mode 100644 index 000000000..b7b978bee --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentIp.java @@ -0,0 +1,290 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentIp.Builder.class) +public final class UpdateConnectionRequestContentIp implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Optional showAsButton; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentIp( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Optional showAsButton, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.showAsButton = showAsButton; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentIp && equalTo((UpdateConnectionRequestContentIp) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentIp other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options, + this.showAsButton); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + private Optional showAsButton = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentIp other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public Builder showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + public Builder showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + public UpdateConnectionRequestContentIp build() { + return new UpdateConnectionRequestContentIp( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + showAsButton, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLine.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLine.java new file mode 100644 index 000000000..b9a03e241 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLine.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentLine.Builder.class) +public final class UpdateConnectionRequestContentLine implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentLine( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentLine + && equalTo((UpdateConnectionRequestContentLine) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentLine other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentLine other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentLine build() { + return new UpdateConnectionRequestContentLine( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLinkedin.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLinkedin.java new file mode 100644 index 000000000..ccf8726d3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLinkedin.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentLinkedin.Builder.class) +public final class UpdateConnectionRequestContentLinkedin implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentLinkedin( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentLinkedin + && equalTo((UpdateConnectionRequestContentLinkedin) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentLinkedin other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentLinkedin other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentLinkedin build() { + return new UpdateConnectionRequestContentLinkedin( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentMiicard.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentMiicard.java new file mode 100644 index 000000000..3bbb65fa1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentMiicard.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentMiicard.Builder.class) +public final class UpdateConnectionRequestContentMiicard implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentMiicard( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentMiicard + && equalTo((UpdateConnectionRequestContentMiicard) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentMiicard other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentMiicard other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentMiicard build() { + return new UpdateConnectionRequestContentMiicard( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth1.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth1.java new file mode 100644 index 000000000..92586b715 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth1.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentOAuth1.Builder.class) +public final class UpdateConnectionRequestContentOAuth1 implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentOAuth1( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentOAuth1 + && equalTo((UpdateConnectionRequestContentOAuth1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentOAuth1 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentOAuth1 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentOAuth1 build() { + return new UpdateConnectionRequestContentOAuth1( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth2.java new file mode 100644 index 000000000..5595a6ba7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth2.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentOAuth2.Builder.class) +public final class UpdateConnectionRequestContentOAuth2 implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentOAuth2( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentOAuth2 + && equalTo((UpdateConnectionRequestContentOAuth2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentOAuth2 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentOAuth2 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2 options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentOAuth2 build() { + return new UpdateConnectionRequestContentOAuth2( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOffice365.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOffice365.java new file mode 100644 index 000000000..e00b76723 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOffice365.java @@ -0,0 +1,291 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentOffice365.Builder.class) +public final class UpdateConnectionRequestContentOffice365 implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Optional showAsButton; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentOffice365( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Optional showAsButton, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.showAsButton = showAsButton; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentOffice365 + && equalTo((UpdateConnectionRequestContentOffice365) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentOffice365 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options, + this.showAsButton); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + private Optional showAsButton = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentOffice365 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public Builder showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + public Builder showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + public UpdateConnectionRequestContentOffice365 build() { + return new UpdateConnectionRequestContentOffice365( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + showAsButton, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java new file mode 100644 index 000000000..05670884e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java @@ -0,0 +1,291 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentOidc.Builder.class) +public final class UpdateConnectionRequestContentOidc implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Optional showAsButton; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentOidc( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Optional showAsButton, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.showAsButton = showAsButton; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentOidc + && equalTo((UpdateConnectionRequestContentOidc) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentOidc other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options, + this.showAsButton); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional showAsButton = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentOidc other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOidc options) { + this.options = Optional.ofNullable(options); + return this; + } + + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public Builder showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + public Builder showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + public UpdateConnectionRequestContentOidc build() { + return new UpdateConnectionRequestContentOidc( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + showAsButton, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOkta.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOkta.java new file mode 100644 index 000000000..5e0894d90 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOkta.java @@ -0,0 +1,291 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentOkta.Builder.class) +public final class UpdateConnectionRequestContentOkta implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Optional showAsButton; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentOkta( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Optional showAsButton, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.showAsButton = showAsButton; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentOkta + && equalTo((UpdateConnectionRequestContentOkta) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentOkta other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options, + this.showAsButton); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional showAsButton = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentOkta other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOkta options) { + this.options = Optional.ofNullable(options); + return this; + } + + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public Builder showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + public Builder showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + public UpdateConnectionRequestContentOkta build() { + return new UpdateConnectionRequestContentOkta( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + showAsButton, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypal.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypal.java new file mode 100644 index 000000000..7955e98a5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypal.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentPaypal.Builder.class) +public final class UpdateConnectionRequestContentPaypal implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentPaypal( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentPaypal + && equalTo((UpdateConnectionRequestContentPaypal) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentPaypal other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentPaypal other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentPaypal build() { + return new UpdateConnectionRequestContentPaypal( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypalSandbox.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypalSandbox.java new file mode 100644 index 000000000..76ac5fb94 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypalSandbox.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentPaypalSandbox.Builder.class) +public final class UpdateConnectionRequestContentPaypalSandbox implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentPaypalSandbox( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentPaypalSandbox + && equalTo((UpdateConnectionRequestContentPaypalSandbox) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentPaypalSandbox other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentPaypalSandbox other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentPaypalSandbox build() { + return new UpdateConnectionRequestContentPaypalSandbox( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPingFederate.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPingFederate.java new file mode 100644 index 000000000..e1446d71a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPingFederate.java @@ -0,0 +1,291 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentPingFederate.Builder.class) +public final class UpdateConnectionRequestContentPingFederate implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Optional showAsButton; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentPingFederate( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Optional showAsButton, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.showAsButton = showAsButton; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentPingFederate + && equalTo((UpdateConnectionRequestContentPingFederate) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentPingFederate other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options, + this.showAsButton); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional showAsButton = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentPingFederate other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsPingFederate options) { + this.options = Optional.ofNullable(options); + return this; + } + + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public Builder showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + public Builder showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + public UpdateConnectionRequestContentPingFederate build() { + return new UpdateConnectionRequestContentPingFederate( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + showAsButton, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPlanningCenter.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPlanningCenter.java new file mode 100644 index 000000000..6ecca4fed --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPlanningCenter.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentPlanningCenter.Builder.class) +public final class UpdateConnectionRequestContentPlanningCenter implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentPlanningCenter( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentPlanningCenter + && equalTo((UpdateConnectionRequestContentPlanningCenter) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentPlanningCenter other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentPlanningCenter other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentPlanningCenter build() { + return new UpdateConnectionRequestContentPlanningCenter( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentRenren.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentRenren.java new file mode 100644 index 000000000..cdc043573 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentRenren.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentRenren.Builder.class) +public final class UpdateConnectionRequestContentRenren implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentRenren( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentRenren + && equalTo((UpdateConnectionRequestContentRenren) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentRenren other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentRenren other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentRenren build() { + return new UpdateConnectionRequestContentRenren( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforce.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforce.java new file mode 100644 index 000000000..50dfdee1a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforce.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentSalesforce.Builder.class) +public final class UpdateConnectionRequestContentSalesforce implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentSalesforce( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentSalesforce + && equalTo((UpdateConnectionRequestContentSalesforce) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentSalesforce other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentSalesforce other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentSalesforce build() { + return new UpdateConnectionRequestContentSalesforce( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceCommunity.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceCommunity.java new file mode 100644 index 000000000..08fc133d8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceCommunity.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentSalesforceCommunity.Builder.class) +public final class UpdateConnectionRequestContentSalesforceCommunity implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentSalesforceCommunity( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentSalesforceCommunity + && equalTo((UpdateConnectionRequestContentSalesforceCommunity) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentSalesforceCommunity other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentSalesforceCommunity other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentSalesforceCommunity build() { + return new UpdateConnectionRequestContentSalesforceCommunity( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceSandbox.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceSandbox.java new file mode 100644 index 000000000..0921857a4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceSandbox.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentSalesforceSandbox.Builder.class) +public final class UpdateConnectionRequestContentSalesforceSandbox implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentSalesforceSandbox( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentSalesforceSandbox + && equalTo((UpdateConnectionRequestContentSalesforceSandbox) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentSalesforceSandbox other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentSalesforceSandbox other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentSalesforceSandbox build() { + return new UpdateConnectionRequestContentSalesforceSandbox( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSaml.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSaml.java new file mode 100644 index 000000000..390a94344 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSaml.java @@ -0,0 +1,291 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentSaml.Builder.class) +public final class UpdateConnectionRequestContentSaml implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Optional showAsButton; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentSaml( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Optional showAsButton, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.showAsButton = showAsButton; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentSaml + && equalTo((UpdateConnectionRequestContentSaml) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentSaml other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options, + this.showAsButton); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional showAsButton = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentSaml other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsSaml options) { + this.options = Optional.ofNullable(options); + return this; + } + + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public Builder showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + public Builder showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + public UpdateConnectionRequestContentSaml build() { + return new UpdateConnectionRequestContentSaml( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + showAsButton, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSharepoint.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSharepoint.java new file mode 100644 index 000000000..2ea1abf48 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSharepoint.java @@ -0,0 +1,291 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentSharepoint.Builder.class) +public final class UpdateConnectionRequestContentSharepoint implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Optional showAsButton; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentSharepoint( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Optional showAsButton, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.showAsButton = showAsButton; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentSharepoint + && equalTo((UpdateConnectionRequestContentSharepoint) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentSharepoint other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options, + this.showAsButton); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional showAsButton = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentSharepoint other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public Builder showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + public Builder showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + public UpdateConnectionRequestContentSharepoint build() { + return new UpdateConnectionRequestContentSharepoint( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + showAsButton, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShop.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShop.java new file mode 100644 index 000000000..d3a5d51c3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShop.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentShop.Builder.class) +public final class UpdateConnectionRequestContentShop implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentShop( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentShop + && equalTo((UpdateConnectionRequestContentShop) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentShop other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentShop other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentShop build() { + return new UpdateConnectionRequestContentShop( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShopify.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShopify.java new file mode 100644 index 000000000..a2eaa3edd --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShopify.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentShopify.Builder.class) +public final class UpdateConnectionRequestContentShopify implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentShopify( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentShopify + && equalTo((UpdateConnectionRequestContentShopify) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentShopify other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentShopify other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentShopify build() { + return new UpdateConnectionRequestContentShopify( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSms.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSms.java new file mode 100644 index 000000000..87239675f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSms.java @@ -0,0 +1,264 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentSms.Builder.class) +public final class UpdateConnectionRequestContentSms implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentSms( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentSms && equalTo((UpdateConnectionRequestContentSms) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentSms other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentSms other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsSms options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentSms build() { + return new UpdateConnectionRequestContentSms( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSoundcloud.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSoundcloud.java new file mode 100644 index 000000000..c81ab2005 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSoundcloud.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentSoundcloud.Builder.class) +public final class UpdateConnectionRequestContentSoundcloud implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentSoundcloud( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentSoundcloud + && equalTo((UpdateConnectionRequestContentSoundcloud) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentSoundcloud other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentSoundcloud other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentSoundcloud build() { + return new UpdateConnectionRequestContentSoundcloud( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTheCity.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTheCity.java new file mode 100644 index 000000000..f6378a254 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTheCity.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentTheCity.Builder.class) +public final class UpdateConnectionRequestContentTheCity implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentTheCity( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentTheCity + && equalTo((UpdateConnectionRequestContentTheCity) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentTheCity other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentTheCity other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentTheCity build() { + return new UpdateConnectionRequestContentTheCity( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTheCitySandbox.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTheCitySandbox.java new file mode 100644 index 000000000..23581237f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTheCitySandbox.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentTheCitySandbox.Builder.class) +public final class UpdateConnectionRequestContentTheCitySandbox implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentTheCitySandbox( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentTheCitySandbox + && equalTo((UpdateConnectionRequestContentTheCitySandbox) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentTheCitySandbox other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentTheCitySandbox other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentTheCitySandbox build() { + return new UpdateConnectionRequestContentTheCitySandbox( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentThirtySevenSignals.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentThirtySevenSignals.java new file mode 100644 index 000000000..6f70331c0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentThirtySevenSignals.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentThirtySevenSignals.Builder.class) +public final class UpdateConnectionRequestContentThirtySevenSignals implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentThirtySevenSignals( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentThirtySevenSignals + && equalTo((UpdateConnectionRequestContentThirtySevenSignals) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentThirtySevenSignals other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentThirtySevenSignals other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentThirtySevenSignals build() { + return new UpdateConnectionRequestContentThirtySevenSignals( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTwitter.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTwitter.java new file mode 100644 index 000000000..ca0f567b5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTwitter.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentTwitter.Builder.class) +public final class UpdateConnectionRequestContentTwitter implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentTwitter( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentTwitter + && equalTo((UpdateConnectionRequestContentTwitter) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentTwitter other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentTwitter other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentTwitter build() { + return new UpdateConnectionRequestContentTwitter( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentUntappd.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentUntappd.java new file mode 100644 index 000000000..75b3bde38 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentUntappd.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentUntappd.Builder.class) +public final class UpdateConnectionRequestContentUntappd implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentUntappd( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentUntappd + && equalTo((UpdateConnectionRequestContentUntappd) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentUntappd other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentUntappd other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentUntappd build() { + return new UpdateConnectionRequestContentUntappd( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentVkontakte.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentVkontakte.java new file mode 100644 index 000000000..13ad53ab6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentVkontakte.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentVkontakte.Builder.class) +public final class UpdateConnectionRequestContentVkontakte implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentVkontakte( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentVkontakte + && equalTo((UpdateConnectionRequestContentVkontakte) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentVkontakte other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentVkontakte other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentVkontakte build() { + return new UpdateConnectionRequestContentVkontakte( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWeibo.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWeibo.java new file mode 100644 index 000000000..9500fcd2d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWeibo.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentWeibo.Builder.class) +public final class UpdateConnectionRequestContentWeibo implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentWeibo( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentWeibo + && equalTo((UpdateConnectionRequestContentWeibo) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentWeibo other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentWeibo other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentWeibo build() { + return new UpdateConnectionRequestContentWeibo( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWindowsLive.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWindowsLive.java new file mode 100644 index 000000000..1fe1f3786 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWindowsLive.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentWindowsLive.Builder.class) +public final class UpdateConnectionRequestContentWindowsLive implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional> options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentWindowsLive( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional> options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional> getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentWindowsLive + && equalTo((UpdateConnectionRequestContentWindowsLive) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentWindowsLive other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional> options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentWindowsLive other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional> options) { + this.options = options; + return this; + } + + public Builder options(Map options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentWindowsLive build() { + return new UpdateConnectionRequestContentWindowsLive( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWordpress.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWordpress.java new file mode 100644 index 000000000..07c46ce03 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWordpress.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentWordpress.Builder.class) +public final class UpdateConnectionRequestContentWordpress implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentWordpress( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentWordpress + && equalTo((UpdateConnectionRequestContentWordpress) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentWordpress other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentWordpress other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentWordpress build() { + return new UpdateConnectionRequestContentWordpress( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYahoo.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYahoo.java new file mode 100644 index 000000000..14cdf66d2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYahoo.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentYahoo.Builder.class) +public final class UpdateConnectionRequestContentYahoo implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentYahoo( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentYahoo + && equalTo((UpdateConnectionRequestContentYahoo) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentYahoo other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentYahoo other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentYahoo build() { + return new UpdateConnectionRequestContentYahoo( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYammer.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYammer.java new file mode 100644 index 000000000..04337382e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYammer.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentYammer.Builder.class) +public final class UpdateConnectionRequestContentYammer implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentYammer( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentYammer + && equalTo((UpdateConnectionRequestContentYammer) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentYammer other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentYammer other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentYammer build() { + return new UpdateConnectionRequestContentYammer( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYandex.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYandex.java new file mode 100644 index 000000000..d07d16cfe --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYandex.java @@ -0,0 +1,265 @@ +/** + * 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.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateConnectionRequestContentYandex.Builder.class) +public final class UpdateConnectionRequestContentYandex implements IConnectionCommon { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final Optional isDomainConnection; + + private final Optional>> metadata; + + private final Optional options; + + private final Map additionalProperties; + + private UpdateConnectionRequestContentYandex( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + Optional isDomainConnection, + Optional>> metadata, + Optional options, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.options = options; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + @java.lang.Override + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + @java.lang.Override + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + + @JsonProperty("enabled_clients") + @java.lang.Override + public Optional> getEnabledClients() { + return enabledClients; + } + + @JsonProperty("is_domain_connection") + @java.lang.Override + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + @java.lang.Override + public Optional>> getMetadata() { + return metadata; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateConnectionRequestContentYandex + && equalTo((UpdateConnectionRequestContentYandex) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateConnectionRequestContentYandex other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && options.equals(other.options); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.isDomainConnection, + this.metadata, + this.options); + } + + @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 authentication = Optional.empty(); + + private Optional connectedAccounts = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional>> metadata = Optional.empty(); + + private Optional options = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UpdateConnectionRequestContentYandex other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + options(other.getOptions()); + return this; + } + + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public Builder authentication(Optional authentication) { + this.authentication = authentication; + return this; + } + + public Builder authentication(ConnectionAuthenticationPurpose authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public Builder connectedAccounts(Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public Builder displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + public Builder displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public Builder enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + public Builder enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public Builder isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + public Builder isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public Builder metadata(Optional>> metadata) { + this.metadata = metadata; + return this; + } + + public Builder metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public Builder options(Optional options) { + this.options = options; + return this; + } + + public Builder options(ConnectionOptionsOAuth2Common options) { + this.options = Optional.ofNullable(options); + return this; + } + + public UpdateConnectionRequestContentYandex build() { + return new UpdateConnectionRequestContentYandex( + authentication, + connectedAccounts, + displayName, + enabledClients, + isDomainConnection, + metadata, + options, + additionalProperties); + } + } +} 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 359368288..46941590e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainResponseContent.java @@ -30,6 +30,8 @@ public final class UpdateCustomDomainResponseContent { private final boolean primary; + private final Optional isDefault; + private final CustomDomainStatusFilterEnum status; private final CustomDomainTypeEnum type; @@ -50,6 +52,7 @@ private UpdateCustomDomainResponseContent( String customDomainId, String domain, boolean primary, + Optional isDefault, CustomDomainStatusFilterEnum status, CustomDomainTypeEnum type, DomainVerification verification, @@ -61,6 +64,7 @@ private UpdateCustomDomainResponseContent( this.customDomainId = customDomainId; this.domain = domain; this.primary = primary; + this.isDefault = isDefault; this.status = status; this.type = type; this.verification = verification; @@ -95,6 +99,14 @@ public boolean getPrimary() { return primary; } + /** + * @return Whether this is the default custom domain (true) or not (false). + */ + @JsonProperty("is_default") + public Optional getIsDefault() { + return isDefault; + } + @JsonProperty("status") public CustomDomainStatusFilterEnum getStatus() { return status; @@ -161,6 +173,7 @@ private boolean equalTo(UpdateCustomDomainResponseContent other) { return customDomainId.equals(other.customDomainId) && domain.equals(other.domain) && primary == other.primary + && isDefault.equals(other.isDefault) && status.equals(other.status) && type.equals(other.type) && verification.equals(other.verification) @@ -176,6 +189,7 @@ public int hashCode() { this.customDomainId, this.domain, this.primary, + this.isDefault, this.status, this.type, this.verification, @@ -232,6 +246,13 @@ public interface VerificationStage { public interface _FinalStage { UpdateCustomDomainResponseContent build(); + /** + *

Whether this is the default custom domain (true) or not (false).

+ */ + _FinalStage isDefault(Optional isDefault); + + _FinalStage isDefault(Boolean isDefault); + /** *

The HTTP header to fetch the client's IP address

*/ @@ -288,6 +309,8 @@ public static final class Builder private OptionalNullable customClientIpHeader = OptionalNullable.absent(); + private Optional isDefault = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -298,6 +321,7 @@ public Builder from(UpdateCustomDomainResponseContent other) { customDomainId(other.getCustomDomainId()); domain(other.getDomain()); primary(other.getPrimary()); + isDefault(other.getIsDefault()); status(other.getStatus()); type(other.getType()); verification(other.getVerification()); @@ -461,12 +485,33 @@ public _FinalStage customClientIpHeader(@Nullable OptionalNullable custo return this; } + /** + *

Whether this is the default custom domain (true) or not (false).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDefault(Boolean isDefault) { + this.isDefault = Optional.ofNullable(isDefault); + return this; + } + + /** + *

Whether this is the default custom domain (true) or not (false).

+ */ + @java.lang.Override + @JsonSetter(value = "is_default", nulls = Nulls.SKIP) + public _FinalStage isDefault(Optional isDefault) { + this.isDefault = isDefault; + return this; + } + @java.lang.Override public UpdateCustomDomainResponseContent build() { return new UpdateCustomDomainResponseContent( customDomainId, domain, primary, + isDefault, status, type, verification, diff --git a/src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java b/src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java new file mode 100644 index 000000000..ccf9a2d67 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java @@ -0,0 +1,179 @@ +/** + * 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; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = X509CertificateCredential.Builder.class) +public final class X509CertificateCredential { + private final String credentialType; + + private final Optional name; + + private final String pem; + + private final Map additionalProperties; + + private X509CertificateCredential( + String credentialType, Optional name, String pem, Map additionalProperties) { + this.credentialType = credentialType; + this.name = name; + this.pem = pem; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("credential_type") + public String getCredentialType() { + return credentialType; + } + + /** + * @return Friendly name for a credential. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return PEM-formatted X509 certificate. Must be JSON escaped. + */ + @JsonProperty("pem") + public String getPem() { + return pem; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof X509CertificateCredential && equalTo((X509CertificateCredential) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(X509CertificateCredential other) { + return credentialType.equals(other.credentialType) && name.equals(other.name) && pem.equals(other.pem); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.credentialType, this.name, this.pem); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static CredentialTypeStage builder() { + return new Builder(); + } + + public interface CredentialTypeStage { + PemStage credentialType(@NotNull String credentialType); + + Builder from(X509CertificateCredential other); + } + + public interface PemStage { + /** + *

PEM-formatted X509 certificate. Must be JSON escaped.

+ */ + _FinalStage pem(@NotNull String pem); + } + + public interface _FinalStage { + X509CertificateCredential build(); + + /** + *

Friendly name for a credential.

+ */ + _FinalStage name(Optional name); + + _FinalStage name(String name); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements CredentialTypeStage, PemStage, _FinalStage { + private String credentialType; + + private String pem; + + private Optional name = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(X509CertificateCredential other) { + credentialType(other.getCredentialType()); + name(other.getName()); + pem(other.getPem()); + return this; + } + + @java.lang.Override + @JsonSetter("credential_type") + public PemStage credentialType(@NotNull String credentialType) { + this.credentialType = Objects.requireNonNull(credentialType, "credentialType must not be null"); + return this; + } + + /** + *

PEM-formatted X509 certificate. Must be JSON escaped.

+ *

PEM-formatted X509 certificate. Must be JSON escaped.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("pem") + public _FinalStage pem(@NotNull String pem) { + this.pem = Objects.requireNonNull(pem, "pem must not be null"); + return this; + } + + /** + *

Friendly name for a credential.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage name(String name) { + this.name = Optional.ofNullable(name); + return this; + } + + /** + *

Friendly name for a credential.

+ */ + @java.lang.Override + @JsonSetter(value = "name", nulls = Nulls.SKIP) + public _FinalStage name(Optional name) { + this.name = name; + return this; + } + + @java.lang.Override + public X509CertificateCredential build() { + return new X509CertificateCredential(credentialType, name, pem, additionalProperties); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncGroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncGroupsClient.java new file mode 100644 index 000000000..adc8d8681 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncGroupsClient.java @@ -0,0 +1,52 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.users; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.types.UserGroupsResponseSchema; +import com.auth0.client.mgmt.users.types.GetUserGroupsRequestParameters; +import java.util.concurrent.CompletableFuture; + +public class AsyncGroupsClient { + protected final ClientOptions clientOptions; + + private final AsyncRawGroupsClient rawClient; + + public AsyncGroupsClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new AsyncRawGroupsClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public AsyncRawGroupsClient withRawResponse() { + return this.rawClient; + } + + /** + * List all groups to which this user belongs. + */ + public CompletableFuture> get(String id) { + return this.rawClient.get(id).thenApply(response -> response.body()); + } + + /** + * List all groups to which this user belongs. + */ + public CompletableFuture> get( + String id, GetUserGroupsRequestParameters request) { + return this.rawClient.get(id, request).thenApply(response -> response.body()); + } + + /** + * List all groups to which this user belongs. + */ + public CompletableFuture> get( + String id, GetUserGroupsRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.get(id, request, requestOptions).thenApply(response -> response.body()); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java new file mode 100644 index 000000000..13f08fae0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java @@ -0,0 +1,164 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.users; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.ManagementApiException; +import com.auth0.client.mgmt.core.ManagementApiHttpResponse; +import com.auth0.client.mgmt.core.ManagementException; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.QueryStringMapper; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.TooManyRequestsError; +import com.auth0.client.mgmt.errors.UnauthorizedError; +import com.auth0.client.mgmt.types.GetUserGroupsPaginatedResponseContent; +import com.auth0.client.mgmt.types.UserGroupsResponseSchema; +import com.auth0.client.mgmt.users.types.GetUserGroupsRequestParameters; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.IOException; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; +import okhttp3.Call; +import okhttp3.Callback; +import okhttp3.Headers; +import okhttp3.HttpUrl; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.Response; +import okhttp3.ResponseBody; +import org.jetbrains.annotations.NotNull; + +public class AsyncRawGroupsClient { + protected final ClientOptions clientOptions; + + public AsyncRawGroupsClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * List all groups to which this user belongs. + */ + public CompletableFuture>> get(String id) { + return get(id, GetUserGroupsRequestParameters.builder().build()); + } + + /** + * List all groups to which this user belongs. + */ + public CompletableFuture>> get( + String id, GetUserGroupsRequestParameters request) { + return get(id, request, null); + } + + /** + * List all groups to which this user belongs. + */ + public CompletableFuture>> get( + String id, GetUserGroupsRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("users") + .addPathSegment(id) + .addPathSegments("groups"); + if (!request.getFields().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "fields", request.getFields().orElse(null), false); + } + if (!request.getIncludeFields().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); + } + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture>> future = + new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + GetUserGroupsPaginatedResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, GetUserGroupsPaginatedResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + GetUserGroupsRequestParameters nextRequest = GetUserGroupsRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getGroups(); + future.complete(new ManagementApiHttpResponse<>( + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> { + try { + return get(id, nextRequest, requestOptions) + .get() + .body(); + } catch (InterruptedException | ExecutionException e) { + throw new RuntimeException(e); + } + }), + response)); + return; + } + try { + switch (response.code()) { + case 400: + future.completeExceptionally(new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } +} diff --git a/src/main/java/com/auth0/client/mgmt/users/GroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/GroupsClient.java new file mode 100644 index 000000000..be7651cd6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/users/GroupsClient.java @@ -0,0 +1,50 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.users; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.types.UserGroupsResponseSchema; +import com.auth0.client.mgmt.users.types.GetUserGroupsRequestParameters; + +public class GroupsClient { + protected final ClientOptions clientOptions; + + private final RawGroupsClient rawClient; + + public GroupsClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new RawGroupsClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public RawGroupsClient withRawResponse() { + return this.rawClient; + } + + /** + * List all groups to which this user belongs. + */ + public SyncPagingIterable get(String id) { + return this.rawClient.get(id).body(); + } + + /** + * List all groups to which this user belongs. + */ + public SyncPagingIterable get(String id, GetUserGroupsRequestParameters request) { + return this.rawClient.get(id, request).body(); + } + + /** + * List all groups to which this user belongs. + */ + public SyncPagingIterable get( + String id, GetUserGroupsRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.get(id, request, requestOptions).body(); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java new file mode 100644 index 000000000..9e795c8ab --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java @@ -0,0 +1,131 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.users; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.ManagementApiException; +import com.auth0.client.mgmt.core.ManagementApiHttpResponse; +import com.auth0.client.mgmt.core.ManagementException; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.QueryStringMapper; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.TooManyRequestsError; +import com.auth0.client.mgmt.errors.UnauthorizedError; +import com.auth0.client.mgmt.types.GetUserGroupsPaginatedResponseContent; +import com.auth0.client.mgmt.types.UserGroupsResponseSchema; +import com.auth0.client.mgmt.users.types.GetUserGroupsRequestParameters; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.IOException; +import java.util.List; +import java.util.Optional; +import okhttp3.Headers; +import okhttp3.HttpUrl; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.Response; +import okhttp3.ResponseBody; + +public class RawGroupsClient { + protected final ClientOptions clientOptions; + + public RawGroupsClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * List all groups to which this user belongs. + */ + public ManagementApiHttpResponse> get(String id) { + return get(id, GetUserGroupsRequestParameters.builder().build()); + } + + /** + * List all groups to which this user belongs. + */ + public ManagementApiHttpResponse> get( + String id, GetUserGroupsRequestParameters request) { + return get(id, request, null); + } + + /** + * List all groups to which this user belongs. + */ + public ManagementApiHttpResponse> get( + String id, GetUserGroupsRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("users") + .addPathSegment(id) + .addPathSegments("groups"); + if (!request.getFields().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "fields", request.getFields().orElse(null), false); + } + if (!request.getIncludeFields().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); + } + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + GetUserGroupsPaginatedResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, GetUserGroupsPaginatedResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + GetUserGroupsRequestParameters nextRequest = GetUserGroupsRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getGroups(); + return new ManagementApiHttpResponse<>( + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> get( + id, nextRequest, requestOptions) + .body()), + response); + } + try { + switch (response.code()) { + case 400: + throw new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/users/types/GetUserGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/GetUserGroupsRequestParameters.java new file mode 100644 index 000000000..40c527b37 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/users/types/GetUserGroupsRequestParameters.java @@ -0,0 +1,307 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.users.types; + +import com.auth0.client.mgmt.core.NullableNonemptyFilter; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.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; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = GetUserGroupsRequestParameters.Builder.class) +public final class GetUserGroupsRequestParameters { + private final OptionalNullable fields; + + private final OptionalNullable includeFields; + + private final OptionalNullable from; + + private final OptionalNullable take; + + private final Map additionalProperties; + + private GetUserGroupsRequestParameters( + OptionalNullable fields, + OptionalNullable includeFields, + OptionalNullable from, + OptionalNullable take, + Map additionalProperties) { + this.fields = fields; + this.includeFields = includeFields; + this.from = from; + this.take = take; + this.additionalProperties = additionalProperties; + } + + /** + * @return A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + public OptionalNullable getFields() { + if (fields == null) { + return OptionalNullable.absent(); + } + return fields; + } + + /** + * @return Whether specified fields are to be included (true) or excluded (false). + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + public OptionalNullable getIncludeFields() { + if (includeFields == null) { + return OptionalNullable.absent(); + } + return includeFields; + } + + /** + * @return Optional Id from which to start selection. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + public OptionalNullable getFrom() { + if (from == null) { + return OptionalNullable.absent(); + } + return from; + } + + /** + * @return Number of results per page. Defaults to 50. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("take") + public OptionalNullable getTake() { + return take; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof GetUserGroupsRequestParameters && equalTo((GetUserGroupsRequestParameters) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(GetUserGroupsRequestParameters other) { + return fields.equals(other.fields) + && includeFields.equals(other.includeFields) + && from.equals(other.from) + && take.equals(other.take); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.fields, this.includeFields, this.from, this.take); + } + + @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 OptionalNullable fields = OptionalNullable.absent(); + + private OptionalNullable includeFields = OptionalNullable.absent(); + + private OptionalNullable from = OptionalNullable.absent(); + + private OptionalNullable take = OptionalNullable.absent(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(GetUserGroupsRequestParameters other) { + fields(other.getFields()); + includeFields(other.getIncludeFields()); + from(other.getFrom()); + take(other.getTake()); + return this; + } + + /** + *

A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields

+ */ + @JsonSetter(value = "fields", nulls = Nulls.SKIP) + public Builder fields(@Nullable OptionalNullable fields) { + this.fields = fields; + return this; + } + + public Builder fields(String fields) { + this.fields = OptionalNullable.of(fields); + return this; + } + + public Builder fields(Optional fields) { + if (fields.isPresent()) { + this.fields = OptionalNullable.of(fields.get()); + } else { + this.fields = OptionalNullable.absent(); + } + return this; + } + + public Builder fields(com.auth0.client.mgmt.core.Nullable fields) { + if (fields.isNull()) { + this.fields = OptionalNullable.ofNull(); + } else if (fields.isEmpty()) { + this.fields = OptionalNullable.absent(); + } else { + this.fields = OptionalNullable.of(fields.get()); + } + return this; + } + + /** + *

Whether specified fields are to be included (true) or excluded (false).

+ */ + @JsonSetter(value = "include_fields", nulls = Nulls.SKIP) + public Builder includeFields(@Nullable OptionalNullable includeFields) { + this.includeFields = includeFields; + return this; + } + + public Builder includeFields(Boolean includeFields) { + this.includeFields = OptionalNullable.of(includeFields); + return this; + } + + public Builder includeFields(Optional includeFields) { + if (includeFields.isPresent()) { + this.includeFields = OptionalNullable.of(includeFields.get()); + } else { + this.includeFields = OptionalNullable.absent(); + } + return this; + } + + public Builder includeFields(com.auth0.client.mgmt.core.Nullable includeFields) { + if (includeFields.isNull()) { + this.includeFields = OptionalNullable.ofNull(); + } else if (includeFields.isEmpty()) { + this.includeFields = OptionalNullable.absent(); + } else { + this.includeFields = OptionalNullable.of(includeFields.get()); + } + return this; + } + + /** + *

Optional Id from which to start selection.

+ */ + @JsonSetter(value = "from", nulls = Nulls.SKIP) + public Builder from(@Nullable OptionalNullable from) { + this.from = from; + return this; + } + + public Builder from(String from) { + this.from = OptionalNullable.of(from); + return this; + } + + public Builder from(Optional from) { + if (from.isPresent()) { + this.from = OptionalNullable.of(from.get()); + } else { + this.from = OptionalNullable.absent(); + } + return this; + } + + public Builder from(com.auth0.client.mgmt.core.Nullable from) { + if (from.isNull()) { + this.from = OptionalNullable.ofNull(); + } else if (from.isEmpty()) { + this.from = OptionalNullable.absent(); + } else { + this.from = OptionalNullable.of(from.get()); + } + return this; + } + + /** + *

Number of results per page. Defaults to 50.

+ */ + @JsonSetter(value = "take", nulls = Nulls.SKIP) + public Builder take(OptionalNullable take) { + this.take = take; + return this; + } + + public Builder take(Integer take) { + this.take = OptionalNullable.of(take); + return this; + } + + public Builder take(Optional take) { + if (take.isPresent()) { + this.take = OptionalNullable.of(take.get()); + } else { + this.take = OptionalNullable.absent(); + } + return this; + } + + public Builder take(com.auth0.client.mgmt.core.Nullable take) { + if (take.isNull()) { + this.take = OptionalNullable.ofNull(); + } else if (take.isEmpty()) { + this.take = OptionalNullable.absent(); + } else { + this.take = OptionalNullable.of(take.get()); + } + return this; + } + + public GetUserGroupsRequestParameters build() { + return new GetUserGroupsRequestParameters(fields, includeFields, from, take, additionalProperties); + } + } +} diff --git a/src/test/java/com/auth0/client/mgmt/CustomDomainsWireTest.java b/src/test/java/com/auth0/client/mgmt/CustomDomainsWireTest.java index d9b0cc758..59780d2a3 100644 --- a/src/test/java/com/auth0/client/mgmt/CustomDomainsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/CustomDomainsWireTest.java @@ -49,7 +49,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "[{\"custom_domain_id\":\"custom_domain_id\",\"domain\":\"domain\",\"primary\":true,\"status\":\"pending_verification\",\"type\":\"auth0_managed_certs\",\"origin_domain_name\":\"origin_domain_name\",\"verification\":{\"methods\":[{\"name\":\"cname\",\"record\":\"record\"}],\"status\":\"verified\",\"error_msg\":\"error_msg\",\"last_verified_at\":\"last_verified_at\"},\"custom_client_ip_header\":\"custom_client_ip_header\",\"tls_policy\":\"tls_policy\",\"domain_metadata\":{\"key\":\"value\"},\"certificate\":{\"status\":\"provisioning\",\"error_msg\":\"error_msg\",\"certificate_authority\":\"letsencrypt\",\"renews_before\":\"renews_before\"}}]")); + "[{\"custom_domain_id\":\"custom_domain_id\",\"domain\":\"domain\",\"primary\":true,\"is_default\":true,\"status\":\"pending_verification\",\"type\":\"auth0_managed_certs\",\"origin_domain_name\":\"origin_domain_name\",\"verification\":{\"methods\":[{\"name\":\"cname\",\"record\":\"record\"}],\"status\":\"verified\",\"error_msg\":\"error_msg\",\"last_verified_at\":\"last_verified_at\"},\"custom_client_ip_header\":\"custom_client_ip_header\",\"tls_policy\":\"tls_policy\",\"domain_metadata\":{\"key\":\"value\"},\"certificate\":{\"status\":\"provisioning\",\"error_msg\":\"error_msg\",\"certificate_authority\":\"letsencrypt\",\"renews_before\":\"renews_before\"}}]")); List response = client.customDomains() .list(ListCustomDomainsRequestParameters.builder() .q(OptionalNullable.of("q")) @@ -70,6 +70,7 @@ public void testList() throws Exception { + " \"custom_domain_id\": \"custom_domain_id\",\n" + " \"domain\": \"domain\",\n" + " \"primary\": true,\n" + + " \"is_default\": true,\n" + " \"status\": \"pending_verification\",\n" + " \"type\": \"auth0_managed_certs\",\n" + " \"origin_domain_name\": \"origin_domain_name\",\n" @@ -244,7 +245,7 @@ public void testGet() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"custom_domain_id\":\"custom_domain_id\",\"domain\":\"domain\",\"primary\":true,\"status\":\"pending_verification\",\"type\":\"auth0_managed_certs\",\"origin_domain_name\":\"origin_domain_name\",\"verification\":{\"methods\":[{\"name\":\"cname\",\"record\":\"record\"}],\"status\":\"verified\",\"error_msg\":\"error_msg\",\"last_verified_at\":\"last_verified_at\"},\"custom_client_ip_header\":\"custom_client_ip_header\",\"tls_policy\":\"tls_policy\",\"domain_metadata\":{\"key\":\"value\"},\"certificate\":{\"status\":\"provisioning\",\"error_msg\":\"error_msg\",\"certificate_authority\":\"letsencrypt\",\"renews_before\":\"renews_before\"}}")); + "{\"custom_domain_id\":\"custom_domain_id\",\"domain\":\"domain\",\"primary\":true,\"is_default\":true,\"status\":\"pending_verification\",\"type\":\"auth0_managed_certs\",\"origin_domain_name\":\"origin_domain_name\",\"verification\":{\"methods\":[{\"name\":\"cname\",\"record\":\"record\"}],\"status\":\"verified\",\"error_msg\":\"error_msg\",\"last_verified_at\":\"last_verified_at\"},\"custom_client_ip_header\":\"custom_client_ip_header\",\"tls_policy\":\"tls_policy\",\"domain_metadata\":{\"key\":\"value\"},\"certificate\":{\"status\":\"provisioning\",\"error_msg\":\"error_msg\",\"certificate_authority\":\"letsencrypt\",\"renews_before\":\"renews_before\"}}")); GetCustomDomainResponseContent response = client.customDomains().get("id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -258,6 +259,7 @@ public void testGet() throws Exception { + " \"custom_domain_id\": \"custom_domain_id\",\n" + " \"domain\": \"domain\",\n" + " \"primary\": true,\n" + + " \"is_default\": true,\n" + " \"status\": \"pending_verification\",\n" + " \"type\": \"auth0_managed_certs\",\n" + " \"origin_domain_name\": \"origin_domain_name\",\n" @@ -330,7 +332,7 @@ public void testUpdate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"custom_domain_id\":\"custom_domain_id\",\"domain\":\"domain\",\"primary\":true,\"status\":\"pending_verification\",\"type\":\"auth0_managed_certs\",\"verification\":{\"methods\":[{\"name\":\"cname\",\"record\":\"record\"}],\"status\":\"verified\",\"error_msg\":\"error_msg\",\"last_verified_at\":\"last_verified_at\"},\"custom_client_ip_header\":\"custom_client_ip_header\",\"tls_policy\":\"tls_policy\",\"domain_metadata\":{\"key\":\"value\"},\"certificate\":{\"status\":\"provisioning\",\"error_msg\":\"error_msg\",\"certificate_authority\":\"letsencrypt\",\"renews_before\":\"renews_before\"}}")); + "{\"custom_domain_id\":\"custom_domain_id\",\"domain\":\"domain\",\"primary\":true,\"is_default\":true,\"status\":\"pending_verification\",\"type\":\"auth0_managed_certs\",\"verification\":{\"methods\":[{\"name\":\"cname\",\"record\":\"record\"}],\"status\":\"verified\",\"error_msg\":\"error_msg\",\"last_verified_at\":\"last_verified_at\"},\"custom_client_ip_header\":\"custom_client_ip_header\",\"tls_policy\":\"tls_policy\",\"domain_metadata\":{\"key\":\"value\"},\"certificate\":{\"status\":\"provisioning\",\"error_msg\":\"error_msg\",\"certificate_authority\":\"letsencrypt\",\"renews_before\":\"renews_before\"}}")); UpdateCustomDomainResponseContent response = client.customDomains() .update("id", UpdateCustomDomainRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -374,6 +376,7 @@ else if (actualJson.has("kind")) + " \"custom_domain_id\": \"custom_domain_id\",\n" + " \"domain\": \"domain\",\n" + " \"primary\": true,\n" + + " \"is_default\": true,\n" + " \"status\": \"pending_verification\",\n" + " \"type\": \"auth0_managed_certs\",\n" + " \"verification\": {\n" diff --git a/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java b/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java index 2a16a94e7..b73e8d8dc 100644 --- a/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java @@ -2,10 +2,12 @@ import com.auth0.client.mgmt.core.ObjectMappers; import com.auth0.client.mgmt.core.OptionalNullable; +import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.CreateEventStreamResponseContent; import com.auth0.client.mgmt.types.CreateEventStreamTestEventRequestContent; import com.auth0.client.mgmt.types.CreateEventStreamTestEventResponseContent; import com.auth0.client.mgmt.types.CreateEventStreamWebHookRequestContent; +import com.auth0.client.mgmt.types.EventStreamResponseContent; import com.auth0.client.mgmt.types.EventStreamTestEventTypeEnum; import com.auth0.client.mgmt.types.EventStreamWebhookAuthorizationResponse; import com.auth0.client.mgmt.types.EventStreamWebhookBasicAuth; @@ -14,7 +16,6 @@ import com.auth0.client.mgmt.types.EventStreamsCreateRequest; import com.auth0.client.mgmt.types.GetEventStreamResponseContent; import com.auth0.client.mgmt.types.ListEventStreamsRequestParameters; -import com.auth0.client.mgmt.types.ListEventStreamsResponseContent; import com.auth0.client.mgmt.types.UpdateEventStreamRequestContent; import com.auth0.client.mgmt.types.UpdateEventStreamResponseContent; import com.fasterxml.jackson.databind.JsonNode; @@ -53,8 +54,8 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"eventStreams\":[{\"id\":\"id\",\"name\":\"name\",\"subscriptions\":[{}],\"destination\":{\"type\":\"webhook\",\"configuration\":{\"webhook_endpoint\":\"webhook_endpoint\",\"webhook_authorization\":{\"method\":\"basic\",\"username\":\"username\"}}},\"status\":\"enabled\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}]}")); - ListEventStreamsResponseContent response = client.eventStreams() + "{\"eventStreams\":[{\"id\":\"id\",\"name\":\"name\",\"subscriptions\":[{}],\"destination\":{\"type\":\"webhook\",\"configuration\":{\"webhook_endpoint\":\"webhook_endpoint\",\"webhook_authorization\":{\"method\":\"basic\",\"username\":\"username\"}}},\"status\":\"enabled\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"next\":\"next\"}")); + SyncPagingIterable response = client.eventStreams() .list(ListEventStreamsRequestParameters.builder() .from(OptionalNullable.of("from")) .take(OptionalNullable.of(1)) @@ -65,61 +66,8 @@ public void testList() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); - String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"eventStreams\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"subscriptions\": [\n" - + " {}\n" - + " ],\n" - + " \"destination\": {\n" - + " \"type\": \"webhook\",\n" - + " \"configuration\": {\n" - + " \"webhook_endpoint\": \"webhook_endpoint\",\n" - + " \"webhook_authorization\": {\n" - + " \"method\": \"basic\",\n" - + " \"username\": \"username\"\n" - + " }\n" - + " }\n" - + " },\n" - + " \"status\": \"enabled\",\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " }\n" - + " ]\n" - + "}"; - JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); - JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); - Assertions.assertTrue( - jsonEquals(expectedResponseNode, actualResponseNode), - "Response body structure does not match expected"); - if (actualResponseNode.has("type") || actualResponseNode.has("_type") || actualResponseNode.has("kind")) { - String discriminator = null; - if (actualResponseNode.has("type")) - discriminator = actualResponseNode.get("type").asText(); - else if (actualResponseNode.has("_type")) - discriminator = actualResponseNode.get("_type").asText(); - else if (actualResponseNode.has("kind")) - discriminator = actualResponseNode.get("kind").asText(); - Assertions.assertNotNull(discriminator, "Union type should have a discriminator field"); - Assertions.assertFalse(discriminator.isEmpty(), "Union discriminator should not be empty"); - } - - if (!actualResponseNode.isNull()) { - Assertions.assertTrue( - actualResponseNode.isObject() || actualResponseNode.isArray() || actualResponseNode.isValueNode(), - "response should be a valid JSON value"); - } - - if (actualResponseNode.isArray()) { - Assertions.assertTrue(actualResponseNode.size() >= 0, "Array should have valid size"); - } - if (actualResponseNode.isObject()) { - Assertions.assertTrue(actualResponseNode.size() >= 0, "Object should have valid field count"); - } + // Pagination response validated via MockWebServer + // The SDK correctly parses the response into a SyncPagingIterable } @Test diff --git a/src/test/java/com/auth0/client/mgmt/GroupsMembersWireTest.java b/src/test/java/com/auth0/client/mgmt/GroupsMembersWireTest.java new file mode 100644 index 000000000..42817904b --- /dev/null +++ b/src/test/java/com/auth0/client/mgmt/GroupsMembersWireTest.java @@ -0,0 +1,94 @@ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.groups.types.GetGroupMembersRequestParameters; +import com.auth0.client.mgmt.types.GroupMember; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; +import okhttp3.mockwebserver.RecordedRequest; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +public class GroupsMembersWireTest { + private MockWebServer server; + private ManagementApi client; + private ObjectMapper objectMapper = ObjectMappers.JSON_MAPPER; + + @BeforeEach + public void setup() throws Exception { + server = new MockWebServer(); + server.start(); + client = ManagementApi.builder() + .url(server.url("/").toString()) + .token("test-token") + .build(); + } + + @AfterEach + public void teardown() throws Exception { + server.shutdown(); + } + + @Test + public void testGet() throws Exception { + server.enqueue( + new MockResponse() + .setResponseCode(200) + .setBody( + "{\"members\":[{\"id\":\"id\",\"member_type\":\"user\",\"type\":\"connection\",\"connection_id\":\"connection_id\",\"created_at\":\"2024-01-15T09:30:00Z\"}],\"next\":\"next\"}")); + SyncPagingIterable response = client.groups() + .members() + .get( + "id", + GetGroupMembersRequestParameters.builder() + .fields(OptionalNullable.of("fields")) + .includeFields(OptionalNullable.of(true)) + .from(OptionalNullable.of("from")) + .take(OptionalNullable.of(1)) + .build()); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("GET", request.getMethod()); + + // Validate response body + Assertions.assertNotNull(response, "Response should not be null"); + // Pagination response validated via MockWebServer + // The SDK correctly parses the response into a SyncPagingIterable + } + + /** + * Compares two JsonNodes with numeric equivalence and null safety. + * For objects, checks that all fields in 'expected' exist in 'actual' with matching values. + * Allows 'actual' to have extra fields (e.g., default values added during serialization). + */ + private boolean jsonEquals(JsonNode expected, JsonNode actual) { + if (expected == null && actual == null) return true; + if (expected == null || actual == null) return false; + if (expected.equals(actual)) return true; + if (expected.isNumber() && actual.isNumber()) + return Math.abs(expected.doubleValue() - actual.doubleValue()) < 1e-10; + if (expected.isObject() && actual.isObject()) { + java.util.Iterator> iter = expected.fields(); + while (iter.hasNext()) { + java.util.Map.Entry entry = iter.next(); + JsonNode actualValue = actual.get(entry.getKey()); + if (actualValue == null || !jsonEquals(entry.getValue(), actualValue)) return false; + } + return true; + } + if (expected.isArray() && actual.isArray()) { + if (expected.size() != actual.size()) return false; + for (int i = 0; i < expected.size(); i++) { + if (!jsonEquals(expected.get(i), actual.get(i))) return false; + } + return true; + } + return false; + } +} diff --git a/src/test/java/com/auth0/client/mgmt/GroupsWireTest.java b/src/test/java/com/auth0/client/mgmt/GroupsWireTest.java new file mode 100644 index 000000000..54cf1e868 --- /dev/null +++ b/src/test/java/com/auth0/client/mgmt/GroupsWireTest.java @@ -0,0 +1,153 @@ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.types.GetGroupResponseContent; +import com.auth0.client.mgmt.types.Group; +import com.auth0.client.mgmt.types.ListGroupsRequestParameters; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; +import okhttp3.mockwebserver.RecordedRequest; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +public class GroupsWireTest { + private MockWebServer server; + private ManagementApi client; + private ObjectMapper objectMapper = ObjectMappers.JSON_MAPPER; + + @BeforeEach + public void setup() throws Exception { + server = new MockWebServer(); + server.start(); + client = ManagementApi.builder() + .url(server.url("/").toString()) + .token("test-token") + .build(); + } + + @AfterEach + public void teardown() throws Exception { + server.shutdown(); + } + + @Test + public void testList() throws Exception { + server.enqueue( + new MockResponse() + .setResponseCode(200) + .setBody( + "{\"groups\":[{\"id\":\"id\",\"name\":\"name\",\"external_id\":\"external_id\",\"connection_id\":\"connection_id\",\"organization_id\":\"organization_id\",\"tenant_name\":\"tenant_name\",\"description\":\"description\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"next\":\"next\",\"start\":1.1,\"limit\":1.1,\"total\":1.1}")); + SyncPagingIterable response = client.groups() + .list(ListGroupsRequestParameters.builder() + .connectionId(OptionalNullable.of("connection_id")) + .name(OptionalNullable.of("name")) + .externalId(OptionalNullable.of("external_id")) + .fields(OptionalNullable.of("fields")) + .includeFields(OptionalNullable.of(true)) + .from(OptionalNullable.of("from")) + .take(OptionalNullable.of(1)) + .build()); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("GET", request.getMethod()); + + // Validate response body + Assertions.assertNotNull(response, "Response should not be null"); + // Pagination response validated via MockWebServer + // The SDK correctly parses the response into a SyncPagingIterable + } + + @Test + public void testGet() throws Exception { + server.enqueue( + new MockResponse() + .setResponseCode(200) + .setBody( + "{\"id\":\"id\",\"name\":\"name\",\"external_id\":\"external_id\",\"connection_id\":\"connection_id\",\"organization_id\":\"organization_id\",\"tenant_name\":\"tenant_name\",\"description\":\"description\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}")); + GetGroupResponseContent response = client.groups().get("id"); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("GET", request.getMethod()); + + // Validate response body + Assertions.assertNotNull(response, "Response should not be null"); + String actualResponseJson = objectMapper.writeValueAsString(response); + String expectedResponseBody = "" + + "{\n" + + " \"id\": \"id\",\n" + + " \"name\": \"name\",\n" + + " \"external_id\": \"external_id\",\n" + + " \"connection_id\": \"connection_id\",\n" + + " \"organization_id\": \"organization_id\",\n" + + " \"tenant_name\": \"tenant_name\",\n" + + " \"description\": \"description\",\n" + + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" + + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" + + "}"; + JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); + JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); + Assertions.assertTrue( + jsonEquals(expectedResponseNode, actualResponseNode), + "Response body structure does not match expected"); + if (actualResponseNode.has("type") || actualResponseNode.has("_type") || actualResponseNode.has("kind")) { + String discriminator = null; + if (actualResponseNode.has("type")) + discriminator = actualResponseNode.get("type").asText(); + else if (actualResponseNode.has("_type")) + discriminator = actualResponseNode.get("_type").asText(); + else if (actualResponseNode.has("kind")) + discriminator = actualResponseNode.get("kind").asText(); + Assertions.assertNotNull(discriminator, "Union type should have a discriminator field"); + Assertions.assertFalse(discriminator.isEmpty(), "Union discriminator should not be empty"); + } + + if (!actualResponseNode.isNull()) { + Assertions.assertTrue( + actualResponseNode.isObject() || actualResponseNode.isArray() || actualResponseNode.isValueNode(), + "response should be a valid JSON value"); + } + + if (actualResponseNode.isArray()) { + Assertions.assertTrue(actualResponseNode.size() >= 0, "Array should have valid size"); + } + if (actualResponseNode.isObject()) { + Assertions.assertTrue(actualResponseNode.size() >= 0, "Object should have valid field count"); + } + } + + /** + * Compares two JsonNodes with numeric equivalence and null safety. + * For objects, checks that all fields in 'expected' exist in 'actual' with matching values. + * Allows 'actual' to have extra fields (e.g., default values added during serialization). + */ + private boolean jsonEquals(JsonNode expected, JsonNode actual) { + if (expected == null && actual == null) return true; + if (expected == null || actual == null) return false; + if (expected.equals(actual)) return true; + if (expected.isNumber() && actual.isNumber()) + return Math.abs(expected.doubleValue() - actual.doubleValue()) < 1e-10; + if (expected.isObject() && actual.isObject()) { + java.util.Iterator> iter = expected.fields(); + while (iter.hasNext()) { + java.util.Map.Entry entry = iter.next(); + JsonNode actualValue = actual.get(entry.getKey()); + if (actualValue == null || !jsonEquals(entry.getValue(), actualValue)) return false; + } + return true; + } + if (expected.isArray() && actual.isArray()) { + if (expected.size() != actual.size()) return false; + for (int i = 0; i < expected.size(); i++) { + if (!jsonEquals(expected.get(i), actual.get(i))) return false; + } + return true; + } + return false; + } +} diff --git a/src/test/java/com/auth0/client/mgmt/PromptsRenderingWireTest.java b/src/test/java/com/auth0/client/mgmt/PromptsRenderingWireTest.java index c367cced1..0491b52ac 100644 --- a/src/test/java/com/auth0/client/mgmt/PromptsRenderingWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/PromptsRenderingWireTest.java @@ -8,9 +8,9 @@ import com.auth0.client.mgmt.prompts.types.UpdateAculRequestContent; import com.auth0.client.mgmt.types.AculConfigsItem; import com.auth0.client.mgmt.types.AculRenderingModeEnum; -import com.auth0.client.mgmt.types.AculResponseContent; import com.auth0.client.mgmt.types.BulkUpdateAculResponseContent; import com.auth0.client.mgmt.types.GetAculResponseContent; +import com.auth0.client.mgmt.types.ListAculsResponseContentItem; import com.auth0.client.mgmt.types.PromptGroupNameEnum; import com.auth0.client.mgmt.types.ScreenGroupNameEnum; import com.auth0.client.mgmt.types.UpdateAculResponseContent; @@ -51,8 +51,8 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"configs\":[{\"rendering_mode\":\"advanced\",\"context_configuration\":[\"context_configuration\"],\"default_head_tags_disabled\":true,\"use_page_template\":true,\"head_tags\":[{}]}],\"start\":1.1,\"limit\":1.1,\"total\":1.1}")); - SyncPagingIterable response = client.prompts() + "{\"configs\":[{\"tenant\":\"tenant\",\"prompt\":\"prompt\",\"screen\":\"screen\",\"rendering_mode\":\"advanced\",\"context_configuration\":[\"branding.settings\"],\"default_head_tags_disabled\":true,\"use_page_template\":true,\"head_tags\":[{}]}],\"start\":1.1,\"limit\":1.1,\"total\":1.1}")); + SyncPagingIterable response = client.prompts() .rendering() .list(ListAculsRequestParameters.builder() .fields(OptionalNullable.of("fields")) @@ -188,7 +188,7 @@ public void testGet() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"tenant\":\"tenant\",\"prompt\":\"prompt\",\"screen\":\"screen\",\"rendering_mode\":\"advanced\",\"context_configuration\":[\"context_configuration\"],\"default_head_tags_disabled\":true,\"use_page_template\":true,\"head_tags\":[{\"tag\":\"tag\",\"attributes\":{\"key\":\"value\"},\"content\":\"content\"}],\"filters\":{\"match_type\":\"includes_any\",\"clients\":[{\"id\":\"id\"}],\"organizations\":[{\"id\":\"id\"}],\"domains\":[{\"id\":\"id\"}]}}")); + "{\"tenant\":\"tenant\",\"prompt\":\"prompt\",\"screen\":\"screen\",\"rendering_mode\":\"advanced\",\"context_configuration\":[\"branding.settings\"],\"default_head_tags_disabled\":true,\"use_page_template\":true,\"head_tags\":[{\"tag\":\"tag\",\"attributes\":{\"key\":\"value\"},\"content\":\"content\"}],\"filters\":{\"match_type\":\"includes_any\",\"clients\":[{\"id\":\"id\"}],\"organizations\":[{\"id\":\"id\"}],\"domains\":[{\"id\":\"id\"}]}}")); GetAculResponseContent response = client.prompts().rendering().get(PromptGroupNameEnum.LOGIN, ScreenGroupNameEnum.LOGIN); RecordedRequest request = server.takeRequest(); @@ -205,7 +205,7 @@ public void testGet() throws Exception { + " \"screen\": \"screen\",\n" + " \"rendering_mode\": \"advanced\",\n" + " \"context_configuration\": [\n" - + " \"context_configuration\"\n" + + " \"branding.settings\"\n" + " ],\n" + " \"default_head_tags_disabled\": true,\n" + " \"use_page_template\": true,\n" @@ -274,7 +274,7 @@ public void testUpdate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"rendering_mode\":\"advanced\",\"context_configuration\":[\"context_configuration\"],\"default_head_tags_disabled\":true,\"use_page_template\":true,\"head_tags\":[{\"tag\":\"tag\",\"attributes\":{\"key\":\"value\"},\"content\":\"content\"}],\"filters\":{\"match_type\":\"includes_any\",\"clients\":[{\"id\":\"id\"}],\"organizations\":[{\"id\":\"id\"}],\"domains\":[{\"id\":\"id\"}]}}")); + "{\"rendering_mode\":\"advanced\",\"context_configuration\":[\"branding.settings\"],\"default_head_tags_disabled\":true,\"use_page_template\":true,\"head_tags\":[{\"tag\":\"tag\",\"attributes\":{\"key\":\"value\"},\"content\":\"content\"}],\"filters\":{\"match_type\":\"includes_any\",\"clients\":[{\"id\":\"id\"}],\"organizations\":[{\"id\":\"id\"}],\"domains\":[{\"id\":\"id\"}]}}")); UpdateAculResponseContent response = client.prompts() .rendering() .update( @@ -321,7 +321,7 @@ else if (actualJson.has("kind")) + "{\n" + " \"rendering_mode\": \"advanced\",\n" + " \"context_configuration\": [\n" - + " \"context_configuration\"\n" + + " \"branding.settings\"\n" + " ],\n" + " \"default_head_tags_disabled\": true,\n" + " \"use_page_template\": true,\n" diff --git a/src/test/java/com/auth0/client/mgmt/UsersGroupsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersGroupsWireTest.java new file mode 100644 index 000000000..3113a4410 --- /dev/null +++ b/src/test/java/com/auth0/client/mgmt/UsersGroupsWireTest.java @@ -0,0 +1,94 @@ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.types.UserGroupsResponseSchema; +import com.auth0.client.mgmt.users.types.GetUserGroupsRequestParameters; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; +import okhttp3.mockwebserver.RecordedRequest; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +public class UsersGroupsWireTest { + private MockWebServer server; + private ManagementApi client; + private ObjectMapper objectMapper = ObjectMappers.JSON_MAPPER; + + @BeforeEach + public void setup() throws Exception { + server = new MockWebServer(); + server.start(); + client = ManagementApi.builder() + .url(server.url("/").toString()) + .token("test-token") + .build(); + } + + @AfterEach + public void teardown() throws Exception { + server.shutdown(); + } + + @Test + public void testGet() throws Exception { + server.enqueue( + new MockResponse() + .setResponseCode(200) + .setBody( + "{\"groups\":[{\"id\":\"id\",\"name\":\"name\",\"external_id\":\"external_id\",\"connection_id\":\"connection_id\",\"organization_id\":\"organization_id\",\"tenant_name\":\"tenant_name\",\"description\":\"description\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"membership_created_at\":\"2024-01-15T09:30:00Z\"}],\"next\":\"next\",\"start\":1.1,\"limit\":1.1,\"total\":1.1}")); + SyncPagingIterable response = client.users() + .groups() + .get( + "id", + GetUserGroupsRequestParameters.builder() + .fields(OptionalNullable.of("fields")) + .includeFields(OptionalNullable.of(true)) + .from(OptionalNullable.of("from")) + .take(OptionalNullable.of(1)) + .build()); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("GET", request.getMethod()); + + // Validate response body + Assertions.assertNotNull(response, "Response should not be null"); + // Pagination response validated via MockWebServer + // The SDK correctly parses the response into a SyncPagingIterable + } + + /** + * Compares two JsonNodes with numeric equivalence and null safety. + * For objects, checks that all fields in 'expected' exist in 'actual' with matching values. + * Allows 'actual' to have extra fields (e.g., default values added during serialization). + */ + private boolean jsonEquals(JsonNode expected, JsonNode actual) { + if (expected == null && actual == null) return true; + if (expected == null || actual == null) return false; + if (expected.equals(actual)) return true; + if (expected.isNumber() && actual.isNumber()) + return Math.abs(expected.doubleValue() - actual.doubleValue()) < 1e-10; + if (expected.isObject() && actual.isObject()) { + java.util.Iterator> iter = expected.fields(); + while (iter.hasNext()) { + java.util.Map.Entry entry = iter.next(); + JsonNode actualValue = actual.get(entry.getKey()); + if (actualValue == null || !jsonEquals(entry.getValue(), actualValue)) return false; + } + return true; + } + if (expected.isArray() && actual.isArray()) { + if (expected.size() != actual.size()) return false; + for (int i = 0; i < expected.size(); i++) { + if (!jsonEquals(expected.get(i), actual.get(i))) return false; + } + return true; + } + return false; + } +}