From 354a58352f91123e9536193df90930f8250c50f5 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 8 Apr 2026 09:53:21 +0000 Subject: [PATCH] SDK regeneration --- reference.md | 463 ++++- .../auth0/client/mgmt/AsyncClientsClient.java | 44 + .../client/mgmt/AsyncCustomDomainsClient.java | 33 + .../auth0/client/mgmt/AsyncGroupsClient.java | 14 + .../client/mgmt/AsyncRawClientsClient.java | 219 ++ .../mgmt/AsyncRawCustomDomainsClient.java | 171 ++ .../client/mgmt/AsyncRawGroupsClient.java | 83 + .../mgmt/AsyncRawRefreshTokensClient.java | 137 ++ .../client/mgmt/AsyncRefreshTokensClient.java | 19 + .../com/auth0/client/mgmt/ClientsClient.java | 42 + .../client/mgmt/CustomDomainsClient.java | 32 + .../com/auth0/client/mgmt/GroupsClient.java | 14 + .../auth0/client/mgmt/RawClientsClient.java | 171 ++ .../client/mgmt/RawCustomDomainsClient.java | 131 ++ .../auth0/client/mgmt/RawGroupsClient.java | 62 + .../client/mgmt/RawRefreshTokensClient.java | 106 + .../client/mgmt/RefreshTokensClient.java | 18 + .../actions/triggers/AsyncBindingsClient.java | 22 +- .../triggers/AsyncRawBindingsClient.java | 26 +- .../mgmt/actions/triggers/BindingsClient.java | 22 +- .../actions/triggers/RawBindingsClient.java | 25 +- .../PostClientCredentialRequestContent.java | 58 +- .../AsyncDiscoveryDomainsClient.java | 8 + .../AsyncRawDiscoveryDomainsClient.java | 8 + .../organizations/DiscoveryDomainsClient.java | 8 + .../RawDiscoveryDomainsClient.java | 8 + .../types/UpdateAculRequestContent.java | 86 +- .../UpdateTenantSettingsRequestContent.java | 42 +- .../client/mgmt/types/ActionBinding.java | 12 +- .../client/mgmt/types/ActionTrigger.java | 12 +- .../types/ActionTriggerCompatibleTrigger.java | 13 +- .../mgmt/types/ActionTriggerTypeEnum.java | 217 ++ .../client/mgmt/types/AculConfigsItem.java | 112 +- ...CimdMappedClientAuthenticationMethods.java | 108 + ...entAuthenticationMethodsPrivateKeyJwt.java | 124 ++ .../mgmt/types/CimdMappedClientFields.java | 400 ++++ .../CimdMappedPrivateKeyJwtCredential.java | 196 ++ .../mgmt/types/CimdValidationResult.java | 248 +++ .../com/auth0/client/mgmt/types/Client.java | 163 +- ... ClientExternalMetadataCreatedByEnum.java} | 39 +- ...va => ClientExternalMetadataTypeEnum.java} | 27 +- .../ClientRefreshTokenConfiguration.java | 61 +- .../ClientSessionTransferConfiguration.java | 55 +- .../types/ConnectionIdentityProviderEnum.java | 65 - .../mgmt/types/ConnectionOptionsAol.java | 291 --- .../mgmt/types/ConnectionOptionsAuth0.java | 26 + .../mgmt/types/ConnectionOptionsAzureAd.java | 1800 ++++++++++++----- .../types/ConnectionOptionsCommonOidc.java | 33 - .../types/ConnectionOptionsGoogleApps.java | 32 + .../mgmt/types/ConnectionOptionsMiicard.java | 291 --- .../mgmt/types/ConnectionOptionsOidc.java | 33 - .../mgmt/types/ConnectionOptionsOkta.java | 33 - .../mgmt/types/ConnectionOptionsRenren.java | 291 --- .../mgmt/types/ConnectionOptionsYammer.java | 291 --- .../mgmt/types/ConnectionPasswordOptions.java | 179 ++ .../ConnectionPasswordOptionsComplexity.java | 254 +++ .../ConnectionPasswordOptionsDictionary.java | 167 ++ .../ConnectionPasswordOptionsHistory.java | 140 ++ .../ConnectionPasswordOptionsProfileData.java | 142 ++ .../types/ConnectionPropertiesOptions.java | 135 +- .../mgmt/types/ConnectionResponseCommon.java | 195 +- .../types/ConnectionResponseContentAd.java | 143 +- .../types/ConnectionResponseContentAdfs.java | 143 +- .../ConnectionResponseContentAmazon.java | 143 +- .../types/ConnectionResponseContentAol.java | 457 ----- .../types/ConnectionResponseContentApple.java | 143 +- .../types/ConnectionResponseContentAuth0.java | 143 +- .../ConnectionResponseContentAuth0Oidc.java | 143 +- .../ConnectionResponseContentAzureAd.java | 143 +- .../types/ConnectionResponseContentBaidu.java | 143 +- .../ConnectionResponseContentBitbucket.java | 143 +- .../types/ConnectionResponseContentBitly.java | 143 +- .../types/ConnectionResponseContentBox.java | 143 +- .../ConnectionResponseContentCustom.java | 143 +- .../ConnectionResponseContentDaccount.java | 143 +- .../ConnectionResponseContentDropbox.java | 143 +- .../ConnectionResponseContentDwolla.java | 143 +- .../types/ConnectionResponseContentEmail.java | 143 +- .../ConnectionResponseContentEvernote.java | 143 +- ...nectionResponseContentEvernoteSandbox.java | 143 +- .../types/ConnectionResponseContentExact.java | 143 +- .../ConnectionResponseContentFacebook.java | 143 +- .../ConnectionResponseContentFitbit.java | 143 +- .../ConnectionResponseContentFlickr.java | 143 +- .../ConnectionResponseContentGitHub.java | 143 +- .../ConnectionResponseContentGoogleApps.java | 143 +- ...ConnectionResponseContentGoogleOAuth2.java | 143 +- .../ConnectionResponseContentInstagram.java | 143 +- .../types/ConnectionResponseContentIp.java | 143 +- .../types/ConnectionResponseContentLine.java | 143 +- .../ConnectionResponseContentLinkedin.java | 143 +- .../ConnectionResponseContentMiicard.java | 457 ----- .../ConnectionResponseContentOAuth1.java | 143 +- .../ConnectionResponseContentOAuth2.java | 143 +- .../ConnectionResponseContentOffice365.java | 143 +- .../types/ConnectionResponseContentOidc.java | 144 +- .../types/ConnectionResponseContentOkta.java | 143 +- .../ConnectionResponseContentPaypal.java | 143 +- ...onnectionResponseContentPaypalSandbox.java | 143 +- ...ConnectionResponseContentPingFederate.java | 143 +- ...nnectionResponseContentPlanningCenter.java | 143 +- .../ConnectionResponseContentRenren.java | 457 ----- .../ConnectionResponseContentSalesforce.java | 143 +- ...ionResponseContentSalesforceCommunity.java | 143 +- ...ctionResponseContentSalesforceSandbox.java | 143 +- .../types/ConnectionResponseContentSaml.java | 143 +- .../ConnectionResponseContentSharepoint.java | 143 +- .../types/ConnectionResponseContentShop.java | 143 +- .../ConnectionResponseContentShopify.java | 143 +- .../types/ConnectionResponseContentSms.java | 143 +- .../ConnectionResponseContentSoundcloud.java | 143 +- ...tionResponseContentThirtySevenSignals.java | 143 +- .../ConnectionResponseContentTwitter.java | 143 +- .../ConnectionResponseContentUntappd.java | 143 +- .../ConnectionResponseContentVkontakte.java | 143 +- .../types/ConnectionResponseContentWeibo.java | 143 +- .../ConnectionResponseContentWindowsLive.java | 143 +- .../ConnectionResponseContentWordpress.java | 143 +- .../types/ConnectionResponseContentYahoo.java | 143 +- .../ConnectionResponseContentYammer.java | 457 ----- ...nnectionResponseContentYammerStrategy.java | 75 - .../ConnectionResponseContentYandex.java | 143 +- .../mgmt/types/ConnectionStrategyEnum.java | 61 - .../CreateClientGrantRequestContent.java | 64 +- .../types/CreateClientResponseContent.java | 163 +- .../mgmt/types/CreateConnectionCommon.java | 158 +- .../types/CreateConnectionRequestContent.java | 8 +- .../CreateConnectionRequestContentAd.java | 105 +- .../CreateConnectionRequestContentAdfs.java | 105 +- .../CreateConnectionRequestContentAmazon.java | 105 +- .../CreateConnectionRequestContentAol.java | 324 --- ...teConnectionRequestContentAolStrategy.java | 75 - .../CreateConnectionRequestContentApple.java | 105 +- .../CreateConnectionRequestContentAuth0.java | 105 +- ...eateConnectionRequestContentAuth0Oidc.java | 105 +- ...CreateConnectionRequestContentAzureAd.java | 105 +- .../CreateConnectionRequestContentBaidu.java | 105 +- ...eateConnectionRequestContentBitbucket.java | 105 +- .../CreateConnectionRequestContentBitly.java | 105 +- .../CreateConnectionRequestContentBox.java | 106 +- .../CreateConnectionRequestContentCustom.java | 105 +- ...reateConnectionRequestContentDaccount.java | 105 +- ...CreateConnectionRequestContentDropbox.java | 105 +- .../CreateConnectionRequestContentDwolla.java | 105 +- .../CreateConnectionRequestContentEmail.java | 105 +- ...reateConnectionRequestContentEvernote.java | 105 +- ...nnectionRequestContentEvernoteSandbox.java | 105 +- .../CreateConnectionRequestContentExact.java | 105 +- ...reateConnectionRequestContentFacebook.java | 105 +- .../CreateConnectionRequestContentFitbit.java | 105 +- .../CreateConnectionRequestContentFlickr.java | 105 +- .../CreateConnectionRequestContentGitHub.java | 106 +- ...ateConnectionRequestContentGoogleApps.java | 105 +- ...eConnectionRequestContentGoogleOAuth2.java | 106 +- ...eateConnectionRequestContentInstagram.java | 105 +- .../CreateConnectionRequestContentIp.java | 105 +- .../CreateConnectionRequestContentLine.java | 105 +- ...reateConnectionRequestContentLinkedin.java | 105 +- ...CreateConnectionRequestContentMiicard.java | 325 --- ...nnectionRequestContentMiicardStrategy.java | 75 - .../CreateConnectionRequestContentOAuth1.java | 105 +- .../CreateConnectionRequestContentOAuth2.java | 106 +- ...eateConnectionRequestContentOffice365.java | 105 +- .../CreateConnectionRequestContentOidc.java | 105 +- .../CreateConnectionRequestContentOkta.java | 105 +- .../CreateConnectionRequestContentPaypal.java | 105 +- ...ConnectionRequestContentPaypalSandbox.java | 105 +- ...eConnectionRequestContentPingFederate.java | 105 +- ...onnectionRequestContentPlanningCenter.java | 105 +- .../CreateConnectionRequestContentRenren.java | 325 --- ...ateConnectionRequestContentSalesforce.java | 105 +- ...tionRequestContentSalesforceCommunity.java | 106 +- ...ectionRequestContentSalesforceSandbox.java | 106 +- .../CreateConnectionRequestContentSaml.java | 105 +- ...ateConnectionRequestContentSharepoint.java | 105 +- .../CreateConnectionRequestContentShop.java | 105 +- ...CreateConnectionRequestContentShopify.java | 105 +- .../CreateConnectionRequestContentSms.java | 105 +- ...ateConnectionRequestContentSoundcloud.java | 105 +- ...ctionRequestContentThirtySevenSignals.java | 106 +- ...CreateConnectionRequestContentTwitter.java | 105 +- ...CreateConnectionRequestContentUntappd.java | 105 +- ...eateConnectionRequestContentVkontakte.java | 105 +- .../CreateConnectionRequestContentWeibo.java | 105 +- ...teConnectionRequestContentWindowsLive.java | 106 +- ...eateConnectionRequestContentWordpress.java | 105 +- .../CreateConnectionRequestContentYahoo.java | 105 +- .../CreateConnectionRequestContentYammer.java | 325 --- .../CreateConnectionRequestContentYandex.java | 105 +- ...teDirectoryProvisioningRequestContent.java | 31 +- ...eDirectoryProvisioningResponseContent.java | 32 + .../types/CreateNetworkAclRequestContent.java | 56 +- .../CreateResourceServerRequestContent.java | 96 +- .../CreateResourceServerResponseContent.java | 74 +- .../mgmt/types/DirectoryProvisioning.java | 32 + ...entStreamWebhookAuthorizationResponse.java | 12 + .../EventStreamWebhookCustomHeaderAuth.java | 155 ++ ...eamWebhookCustomHeaderAuthMethodEnum.java} | 28 +- .../GetActionExecutionResponseContent.java | 12 +- .../mgmt/types/GetAculResponseContent.java | 86 +- .../mgmt/types/GetClientResponseContent.java | 163 +- ...DefaultCanonicalDomainResponseContent.java | 130 ++ ...GetDefaultCustomDomainResponseContent.java | 632 ++++++ .../GetDefaultDomainResponseContent.java | 97 + ...tDirectoryProvisioningResponseContent.java | 32 + .../mgmt/types/GetGroupResponseContent.java | 177 +- ...RefreshTokensPaginatedResponseContent.java | 138 ++ .../GetRefreshTokensRequestParameters.java | 563 ++++++ .../GetResourceServerResponseContent.java | 74 +- .../GetTenantSettingsResponseContent.java | 42 +- .../com/auth0/client/mgmt/types/Group.java | 136 +- .../types/IConnectionOptionsCommonOidc.java | 2 - .../mgmt/types/IConnectionResponseCommon.java | 2 +- .../mgmt/types/ICreateConnectionCommon.java | 15 +- .../com/auth0/client/mgmt/types/IGroup.java | 5 - .../mgmt/types/IdentityProviderEnum.java | 61 - .../types/ListActionsRequestParameters.java | 18 +- .../types/ListAculsResponseContentItem.java | 86 +- .../types/ListClientsRequestParameters.java | 66 +- .../ListCustomDomainsRequestParameters.java | 4 +- .../types/ListUsersRequestParameters.java | 4 +- .../client/mgmt/types/NetworkAclMatch.java | 82 +- .../auth0/client/mgmt/types/OauthScope.java | 10 + .../mgmt/types/PasswordCharacterTypeEnum.java | 106 + .../PasswordCharacterTypeRulePolicyEnum.java | 86 + ...a => PasswordDefaultDictionariesEnum.java} | 43 +- ...asswordIdenticalCharactersPolicyEnum.java} | 39 +- .../PasswordMaxLengthExceededPolicyEnum.java | 86 + ...asswordSequentialCharactersPolicyEnum.java | 86 + .../PreviewCimdMetadataRequestContent.java | 129 ++ .../PreviewCimdMetadataResponseContent.java | 194 ++ .../client/mgmt/types/PromptLanguageEnum.java | 10 + .../mgmt/types/PublicKeyCredential.java | 49 +- .../RegisterCimdClientRequestContent.java | 129 ++ .../RegisterCimdClientResponseContent.java | 179 ++ .../client/mgmt/types/ResourceServer.java | 74 +- .../RotateClientSecretResponseContent.java | 163 +- ...viceProfileSsoTicketConnectionOptions.java | 42 +- .../SetDefaultCustomDomainRequestContent.java | 130 ++ .../types/SetNetworkAclRequestContent.java | 56 +- .../client/mgmt/types/SupportedLocales.java | 10 + ...tegy.java => SynchronizeGroupsEaEnum.java} | 37 +- .../TenantSettingsSupportedLocalesEnum.java | 11 + .../mgmt/types/UpdateAculResponseContent.java | 86 +- .../UpdateClientGrantRequestContent.java | 42 +- .../types/UpdateClientRequestContent.java | 95 +- .../types/UpdateClientResponseContent.java | 163 +- .../mgmt/types/UpdateConnectionOptions.java | 135 +- .../types/UpdateConnectionRequestContent.java | 42 +- .../UpdateConnectionRequestContentAol.java | 211 -- ...UpdateConnectionRequestContentMiicard.java | 212 -- .../UpdateConnectionRequestContentRenren.java | 212 -- .../UpdateConnectionRequestContentYammer.java | 212 -- ...DefaultCanonicalDomainResponseContent.java | 130 ++ ...ateDefaultCustomDomainResponseContent.java | 632 ++++++ .../UpdateDefaultDomainResponseContent.java | 99 + ...teDirectoryProvisioningRequestContent.java | 31 +- ...eDirectoryProvisioningResponseContent.java | 32 + .../mgmt/types/UpdateFlowRequestContent.java | 47 +- .../UpdateResourceServerRequestContent.java | 74 +- .../UpdateResourceServerResponseContent.java | 74 +- .../UpdateTenantSettingsResponseContent.java | 42 +- .../mgmt/types/UserGroupsResponseSchema.java | 127 +- .../mgmt/types/UserIdentityProviderEnum.java | 61 - .../mgmt/ActionsExecutionsWireTest.java | 4 +- .../client/mgmt/ActionsModulesWireTest.java | 2 +- .../mgmt/ActionsTriggersBindingsWireTest.java | 11 +- .../client/mgmt/ActionsTriggersWireTest.java | 6 +- .../client/mgmt/ActionsVersionsWireTest.java | 2 +- .../auth0/client/mgmt/ActionsWireTest.java | 12 +- .../client/mgmt/ClientGrantsWireTest.java | 4 +- .../auth0/client/mgmt/ClientsWireTest.java | 242 +++ ...nectionsDirectoryProvisioningWireTest.java | 11 +- .../client/mgmt/CustomDomainsWireTest.java | 193 ++ .../com/auth0/client/mgmt/GroupsWireTest.java | 15 +- .../client/mgmt/NetworkAclsWireTest.java | 4 - .../client/mgmt/RefreshTokensWireTest.java | 30 + .../client/mgmt/ResourceServersWireTest.java | 11 +- .../client/mgmt/UsersGroupsWireTest.java | 2 +- ...sVersionsWireTest_testDeploy_response.json | 6 +- ...ionsVersionsWireTest_testGet_response.json | 6 +- .../ActionsWireTest_testCreate_response.json | 10 +- .../ActionsWireTest_testDeploy_response.json | 6 +- .../ActionsWireTest_testGet_response.json | 10 +- .../ActionsWireTest_testUpdate_response.json | 10 +- .../ClientsWireTest_testCreate_response.json | 6 +- .../ClientsWireTest_testGet_response.json | 6 +- .../ClientsWireTest_testList_response.json | 6 +- ...ntsWireTest_testRotateSecret_response.json | 6 +- .../ClientsWireTest_testUpdate_response.json | 6 +- .../NetworkAclsWireTest_testGet_response.json | 18 + .../NetworkAclsWireTest_testSet_response.json | 18 + ...tworkAclsWireTest_testUpdate_response.json | 18 + 293 files changed, 20117 insertions(+), 14095 deletions(-) create mode 100644 src/main/java/com/auth0/client/mgmt/types/ActionTriggerTypeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/CimdMappedClientAuthenticationMethods.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/CimdMappedClientAuthenticationMethodsPrivateKeyJwt.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/CimdMappedClientFields.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/CimdMappedPrivateKeyJwtCredential.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/CimdValidationResult.java rename src/main/java/com/auth0/client/mgmt/types/{ConnectionResponseContentMiicardStrategy.java => ClientExternalMetadataCreatedByEnum.java} (51%) rename src/main/java/com/auth0/client/mgmt/types/{ConnectionResponseContentAolStrategy.java => ClientExternalMetadataTypeEnum.java} (60%) delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAol.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsMiicard.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsRenren.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYammer.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptions.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptionsComplexity.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptionsDictionary.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptionsHistory.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptionsProfileData.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAol.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicard.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenren.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammer.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammerStrategy.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAol.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAolStrategy.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicard.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicardStrategy.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenren.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYammer.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookCustomHeaderAuth.java rename src/main/java/com/auth0/client/mgmt/types/{CreateConnectionRequestContentRenrenStrategy.java => EventStreamWebhookCustomHeaderAuthMethodEnum.java} (57%) create mode 100644 src/main/java/com/auth0/client/mgmt/types/GetDefaultCanonicalDomainResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/GetDefaultCustomDomainResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/GetDefaultDomainResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/GetRefreshTokensPaginatedResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/GetRefreshTokensRequestParameters.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/PasswordCharacterTypeEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/PasswordCharacterTypeRulePolicyEnum.java rename src/main/java/com/auth0/client/mgmt/types/{ConnectionDpopSigningAlgEnum.java => PasswordDefaultDictionariesEnum.java} (52%) rename src/main/java/com/auth0/client/mgmt/types/{ConnectionResponseContentRenrenStrategy.java => PasswordIdenticalCharactersPolicyEnum.java} (51%) create mode 100644 src/main/java/com/auth0/client/mgmt/types/PasswordMaxLengthExceededPolicyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/PasswordSequentialCharactersPolicyEnum.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/PreviewCimdMetadataRequestContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/PreviewCimdMetadataResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientRequestContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/SetDefaultCustomDomainRequestContent.java rename src/main/java/com/auth0/client/mgmt/types/{CreateConnectionRequestContentYammerStrategy.java => SynchronizeGroupsEaEnum.java} (56%) delete mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAol.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentMiicard.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentRenren.java delete mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYammer.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCanonicalDomainResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCustomDomainResponseContent.java create mode 100644 src/main/java/com/auth0/client/mgmt/types/UpdateDefaultDomainResponseContent.java diff --git a/reference.md b/reference.md index 1f58e0516..d37e177d6 100644 --- a/reference.md +++ b/reference.md @@ -31,7 +31,7 @@ client.actions().list( ListActionsRequestParameters .builder() .triggerId( - OptionalNullable.of("triggerId") + OptionalNullable.of(ActionTriggerTypeEnum.POST_LOGIN) ) .actionName( OptionalNullable.of("actionName") @@ -64,7 +64,7 @@ client.actions().list(
-**triggerId:** `Optional` — An actions extensibility point. +**triggerId:** `Optional` — An actions extensibility point.
@@ -151,7 +151,7 @@ client.actions().create( Arrays.asList( ActionTrigger .builder() - .id("id") + .id(ActionTriggerTypeEnum.POST_LOGIN) .build() ) ) @@ -873,7 +873,6 @@ Create a client grant for a machine-to-machine login flow. To learn more, read < client.clientGrants().create( CreateClientGrantRequestContent .builder() - .clientId("client_id") .audience("audience") .build() ); @@ -891,7 +890,7 @@ client.clientGrants().create(
-**clientId:** `String` — ID of the client. +**clientId:** `Optional` — ID of the client.
@@ -1254,6 +1253,9 @@ client.clients().list( .appType( OptionalNullable.of("app_type") ) + .externalClientId( + OptionalNullable.of("external_client_id") + ) .q( OptionalNullable.of("q") ) @@ -1337,7 +1339,15 @@ client.clients().list(
-**q:** `Optional` — Advanced Query in Lucene syntax.
Permitted Queries:
  • client_grant.organization_id:{organization_id}
  • client_grant.allow_any_organization:true
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Requires use of the from and take paging parameters (checkpoint paginatinon)
  • Reduced rate limits apply. See Rate Limit Configurations
Note: Recent updates may not be immediately reflected in query results +**externalClientId:** `Optional` — Optional filter by the Client ID Metadata Document URI for CIMD-registered clients. + +
+
+ +
+
+ +**q:** `Optional` — Advanced Query in Lucene syntax.
Permitted Queries:
  • client_grant.organization_id:{organization_id}
  • client_grant.allow_any_organization:true
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Requires use of the from and take paging parameters (checkpoint paginatinon)
  • Reduced rate limits apply. See Rate Limit Configurations
Note: Recent updates may not be immediately reflected in query results
@@ -1813,6 +1823,131 @@ See https://auth0.com/docs/secure/security-guidance/measures-against-app-imperso + + + + +
client.clients.previewCimdMetadata(request) -> PreviewCimdMetadataResponseContent +
+
+ +#### 📝 Description + +
+
+ +
+
+ + + Fetches and validates a Client ID Metadata Document without creating a client. + Returns the raw metadata and how it would be mapped to Auth0 client fields. + This endpoint is useful for testing metadata URIs before creating CIMD clients. + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.clients().previewCimdMetadata( + PreviewCimdMetadataRequestContent + .builder() + .externalClientId("external_client_id") + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**externalClientId:** `String` — URL to the Client ID Metadata Document + +
+
+
+
+ + +
+
+
+ +
client.clients.registerCimdClient(request) -> RegisterCimdClientResponseContent +
+
+ +#### 📝 Description + +
+
+ +
+
+ + + Idempotent registration for Client ID Metadata Document (CIMD) clients. + Uses external_client_id as the unique identifier for upsert operations. + **Create:** Returns 201 when a new client is created (requires \ +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.clients().registerCimdClient( + RegisterCimdClientRequestContent + .builder() + .externalClientId("external_client_id") + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**externalClientId:** `String` — URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations. + +
+
+
+
+ +
@@ -3205,7 +3340,7 @@ client.connections().create(
-**enabledClients:** `Optional>` — DEPRECATED property. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. +**enabledClients:** `Optional>` — Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.
@@ -3648,7 +3783,7 @@ client.customDomains().list(
-**q:** `Optional` — Query in Lucene query string syntax. +**q:** `Optional` — Query in Lucene query string syntax.
@@ -3801,6 +3936,104 @@ client.customDomains().create( + + + + +
client.customDomains.getDefault() -> GetDefaultDomainResponseContent +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieve the tenant's default domain. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.customDomains().getDefault(); +``` +
+
+
+
+ + +
+
+
+ +
client.customDomains.setDefault(request) -> UpdateDefaultDomainResponseContent +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Set the default custom domain for the tenant. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.customDomains().setDefault( + SetDefaultCustomDomainRequestContent + .builder() + .domain("domain") + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**domain:** `String` — The domain to set as the default custom domain. Must be a verified custom domain or the canonical domain. + +
+
+
+
+ +
@@ -6302,6 +6535,60 @@ client.groups().get("id"); + + + + +
client.groups.delete(id) +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Delete a group by its ID. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.groups().delete("id"); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — Unique identifier for the group (service-generated). + +
+
+
+
+ +
@@ -7763,7 +8050,6 @@ client.networkAcls().create( .builder() .description("description") .active(true) - .priority(1.1) .rule( NetworkAclRule .builder() @@ -7807,7 +8093,7 @@ client.networkAcls().create(
-**priority:** `Double` — Indicates the order in which the ACL will be evaluated relative to other ACL rules. +**priority:** `Optional` — Indicates the order in which the ACL will be evaluated relative to other ACL rules.
@@ -7914,7 +8200,6 @@ client.networkAcls().set( .builder() .description("description") .active(true) - .priority(1.1) .rule( NetworkAclRule .builder() @@ -7966,7 +8251,7 @@ client.networkAcls().set(
-**priority:** `Double` — Indicates the order in which the ACL will be evaluated relative to other ACL rules. +**priority:** `Optional` — Indicates the order in which the ACL will be evaluated relative to other ACL rules.
@@ -8710,6 +8995,120 @@ client.prompts().updateSettings( ## RefreshTokens +
client.refreshTokens.list() -> SyncPagingIterable&lt;RefreshTokenResponseContent&gt; +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieve a paginated list of refresh tokens for a specific user, with optional filtering by client ID. Results are sorted by credential_id ascending. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.refreshTokens().list( + GetRefreshTokensRequestParameters + .builder() + .userId("user_id") + .clientId( + OptionalNullable.of("client_id") + ) + .from( + OptionalNullable.of("from") + ) + .take( + OptionalNullable.of(1) + ) + .fields( + OptionalNullable.of("fields") + ) + .includeFields( + OptionalNullable.of(true) + ) + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**userId:** `String` — ID of the user whose refresh tokens to retrieve. Required. + +
+
+ +
+
+ +**clientId:** `Optional` — Filter results by client ID. Only valid when user_id is provided. + +
+
+ +
+
+ +**from:** `Optional` — An opaque cursor from which to start the selection (exclusive). Expires after 24 hours. Obtained from the next property of a previous response. + +
+
+ +
+
+ +**take:** `Optional` — Number of results per page. Defaults to 50. + +
+
+ +
+
+ +**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. + +
+
+ +
+
+ +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). + +
+
+
+
+ + +
+
+
+
client.refreshTokens.get(id) -> GetRefreshTokenResponseContent
@@ -9083,6 +9482,14 @@ client.resourceServers().create(
+**allowOnlineAccess:** `Optional` — Whether Online Refresh Tokens can be issued for this API (true) or not (false). + +
+
+ +
+
+ **tokenLifetime:** `Optional` — Expiration value (in seconds) for access tokens issued for this API from the token endpoint.
@@ -9386,6 +9793,14 @@ client.resourceServers().update(
+**allowOnlineAccess:** `Optional` — Whether Online Refresh Tokens can be issued for this API (true) or not (false). + +
+
+ +
+
+ **tokenLifetime:** `Optional` — Expiration value (in seconds) for access tokens issued for this API from the token endpoint.
@@ -12694,7 +13109,7 @@ client.users().list(
-**q:** `Optional` — Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields. +**q:** `Optional` — Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields.
@@ -14585,7 +15000,7 @@ Retrieve the actions that are bound to a trigger. Once an action is created and ```java client.actions().triggers().bindings().list( - "triggerId", + ActionTriggerTypeEnum.POST_LOGIN, ListActionTriggerBindingsRequestParameters .builder() .page( @@ -14610,7 +15025,7 @@ client.actions().triggers().bindings().list(
-**triggerId:** `String` — An actions extensibility point. +**triggerId:** `ActionTriggerTypeEnum` — An actions extensibility point.
@@ -14666,7 +15081,7 @@ Update the actions that are bound (i.e. attached) to a trigger. Once an action i ```java client.actions().triggers().bindings().updateMany( - "triggerId", + ActionTriggerTypeEnum.POST_LOGIN, UpdateActionBindingsRequestContent .builder() .build() @@ -14685,7 +15100,7 @@ client.actions().triggers().bindings().updateMany(
-**triggerId:** `String` — An actions extensibility point. +**triggerId:** `ActionTriggerTypeEnum` — An actions extensibility point.
@@ -17229,6 +17644,14 @@ client.clients().credentials().create( **expiresAt:** `Optional` — The ISO 8601 formatted date representing the expiration of the credential. If not specified (not recommended), the credential never expires. Applies to `public_key` credential type. +
+
+ +
+
+ +**kid:** `Optional` — Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64} +
@@ -23755,6 +24178,7 @@ client.organizations().clientGrants().delete("id", "grant_id");
Retrieve list of all organization discovery domains associated with the specified organization. +This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
@@ -23920,7 +24344,7 @@ client.organizations().discoveryDomains().create(
Retrieve details about a single organization discovery domain specified by domain name. - +This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
@@ -23982,7 +24406,8 @@ client.organizations().discoveryDomains().getByName("id", "discovery_domain");
-Retrieve details about a single organization discovery domain specified by ID. +Retrieve details about a single organization discovery domain specified by ID. +This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response.
diff --git a/src/main/java/com/auth0/client/mgmt/AsyncClientsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncClientsClient.java index 1d8b332b3..1297e3e85 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncClientsClient.java @@ -15,6 +15,10 @@ import com.auth0.client.mgmt.types.GetClientRequestParameters; import com.auth0.client.mgmt.types.GetClientResponseContent; import com.auth0.client.mgmt.types.ListClientsRequestParameters; +import com.auth0.client.mgmt.types.PreviewCimdMetadataRequestContent; +import com.auth0.client.mgmt.types.PreviewCimdMetadataResponseContent; +import com.auth0.client.mgmt.types.RegisterCimdClientRequestContent; +import com.auth0.client.mgmt.types.RegisterCimdClientResponseContent; import com.auth0.client.mgmt.types.RotateClientSecretResponseContent; import com.auth0.client.mgmt.types.UpdateClientRequestContent; import com.auth0.client.mgmt.types.UpdateClientResponseContent; @@ -238,6 +242,46 @@ public CompletableFuture create( return this.rawClient.create(request, requestOptions).thenApply(response -> response.body()); } + /** + * Fetches and validates a Client ID Metadata Document without creating a client. + * Returns the raw metadata and how it would be mapped to Auth0 client fields. + * This endpoint is useful for testing metadata URIs before creating CIMD clients. + */ + public CompletableFuture previewCimdMetadata( + PreviewCimdMetadataRequestContent request) { + return this.rawClient.previewCimdMetadata(request).thenApply(response -> response.body()); + } + + /** + * Fetches and validates a Client ID Metadata Document without creating a client. + * Returns the raw metadata and how it would be mapped to Auth0 client fields. + * This endpoint is useful for testing metadata URIs before creating CIMD clients. + */ + public CompletableFuture previewCimdMetadata( + PreviewCimdMetadataRequestContent request, RequestOptions requestOptions) { + return this.rawClient.previewCimdMetadata(request, requestOptions).thenApply(response -> response.body()); + } + + /** + * Idempotent registration for Client ID Metadata Document (CIMD) clients. + * Uses external_client_id as the unique identifier for upsert operations. + * Create: Returns 201 when a new client is created (requires \ + */ + public CompletableFuture registerCimdClient( + RegisterCimdClientRequestContent request) { + return this.rawClient.registerCimdClient(request).thenApply(response -> response.body()); + } + + /** + * Idempotent registration for Client ID Metadata Document (CIMD) clients. + * Uses external_client_id as the unique identifier for upsert operations. + * Create: Returns 201 when a new client is created (requires \ + */ + public CompletableFuture registerCimdClient( + RegisterCimdClientRequestContent request, RequestOptions requestOptions) { + return this.rawClient.registerCimdClient(request, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. * For more information, read Applications in Auth0 and Single Sign-On. diff --git a/src/main/java/com/auth0/client/mgmt/AsyncCustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncCustomDomainsClient.java index be8502d7d..ebde78fa5 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncCustomDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncCustomDomainsClient.java @@ -9,10 +9,13 @@ import com.auth0.client.mgmt.types.CreateCustomDomainResponseContent; import com.auth0.client.mgmt.types.CustomDomain; import com.auth0.client.mgmt.types.GetCustomDomainResponseContent; +import com.auth0.client.mgmt.types.GetDefaultDomainResponseContent; import com.auth0.client.mgmt.types.ListCustomDomainsRequestParameters; +import com.auth0.client.mgmt.types.SetDefaultCustomDomainRequestContent; import com.auth0.client.mgmt.types.TestCustomDomainResponseContent; import com.auth0.client.mgmt.types.UpdateCustomDomainRequestContent; import com.auth0.client.mgmt.types.UpdateCustomDomainResponseContent; +import com.auth0.client.mgmt.types.UpdateDefaultDomainResponseContent; import com.auth0.client.mgmt.types.VerifyCustomDomainResponseContent; import java.util.List; import java.util.concurrent.CompletableFuture; @@ -100,6 +103,36 @@ public CompletableFuture create( return this.rawClient.create(request, requestOptions).thenApply(response -> response.body()); } + /** + * Retrieve the tenant's default domain. + */ + public CompletableFuture getDefault() { + return this.rawClient.getDefault().thenApply(response -> response.body()); + } + + /** + * Retrieve the tenant's default domain. + */ + public CompletableFuture getDefault(RequestOptions requestOptions) { + return this.rawClient.getDefault(requestOptions).thenApply(response -> response.body()); + } + + /** + * Set the default custom domain for the tenant. + */ + public CompletableFuture setDefault( + SetDefaultCustomDomainRequestContent request) { + return this.rawClient.setDefault(request).thenApply(response -> response.body()); + } + + /** + * Set the default custom domain for the tenant. + */ + public CompletableFuture setDefault( + SetDefaultCustomDomainRequestContent request, RequestOptions requestOptions) { + return this.rawClient.setDefault(request, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve a custom domain configuration and status. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncGroupsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncGroupsClient.java index 7015f6561..bb9f12e46 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncGroupsClient.java @@ -77,6 +77,20 @@ public CompletableFuture get(String id, RequestOptions return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); } + /** + * Delete a group by its ID. + */ + public CompletableFuture delete(String id) { + return this.rawClient.delete(id).thenApply(response -> response.body()); + } + + /** + * Delete a group by its ID. + */ + public CompletableFuture delete(String id, RequestOptions requestOptions) { + return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); + } + public AsyncMembersClient members() { return this.membersClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawClientsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawClientsClient.java index 215c50159..d6820e9e3 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawClientsClient.java @@ -15,6 +15,7 @@ import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.InternalServerError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -25,6 +26,10 @@ import com.auth0.client.mgmt.types.GetClientResponseContent; import com.auth0.client.mgmt.types.ListClientsOffsetPaginatedResponseContent; import com.auth0.client.mgmt.types.ListClientsRequestParameters; +import com.auth0.client.mgmt.types.PreviewCimdMetadataRequestContent; +import com.auth0.client.mgmt.types.PreviewCimdMetadataResponseContent; +import com.auth0.client.mgmt.types.RegisterCimdClientRequestContent; +import com.auth0.client.mgmt.types.RegisterCimdClientResponseContent; import com.auth0.client.mgmt.types.RotateClientSecretResponseContent; import com.auth0.client.mgmt.types.UpdateClientRequestContent; import com.auth0.client.mgmt.types.UpdateClientResponseContent; @@ -232,6 +237,10 @@ public CompletableFuture>> QueryStringMapper.addQueryParameter( httpUrl, "app_type", request.getAppType().orElse(null), false); } + if (!request.getExternalClientId().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "external_client_id", request.getExternalClientId().orElse(null), false); + } if (!request.getQ().isAbsent()) { QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().orElse(null), false); } @@ -449,6 +458,216 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { return future; } + /** + * Fetches and validates a Client ID Metadata Document without creating a client. + * Returns the raw metadata and how it would be mapped to Auth0 client fields. + * This endpoint is useful for testing metadata URIs before creating CIMD clients. + */ + public CompletableFuture> previewCimdMetadata( + PreviewCimdMetadataRequestContent request) { + return previewCimdMetadata(request, null); + } + + /** + * Fetches and validates a Client ID Metadata Document without creating a client. + * Returns the raw metadata and how it would be mapped to Auth0 client fields. + * This endpoint is useful for testing metadata URIs before creating CIMD clients. + */ + public CompletableFuture> previewCimdMetadata( + PreviewCimdMetadataRequestContent request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("clients/cimd/preview"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("POST", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture> future = + new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, PreviewCimdMetadataResponseContent.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 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 500: + future.completeExceptionally(new InternalServerError( + 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; + } + + /** + * Idempotent registration for Client ID Metadata Document (CIMD) clients. + * Uses external_client_id as the unique identifier for upsert operations. + * Create: Returns 201 when a new client is created (requires \ + */ + public CompletableFuture> registerCimdClient( + RegisterCimdClientRequestContent request) { + return registerCimdClient(request, null); + } + + /** + * Idempotent registration for Client ID Metadata Document (CIMD) clients. + * Uses external_client_id as the unique identifier for upsert operations. + * Create: Returns 201 when a new client is created (requires \ + */ + public CompletableFuture> registerCimdClient( + RegisterCimdClientRequestContent request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("clients/cimd/register"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("POST", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture> future = + new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, RegisterCimdClientResponseContent.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 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 500: + future.completeExceptionally(new InternalServerError( + 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 client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. * For more information, read Applications in Auth0 and Single Sign-On. diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java index 0f0e3c6ef..ae9aed4e7 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java @@ -21,10 +21,13 @@ import com.auth0.client.mgmt.types.CreateCustomDomainResponseContent; import com.auth0.client.mgmt.types.CustomDomain; import com.auth0.client.mgmt.types.GetCustomDomainResponseContent; +import com.auth0.client.mgmt.types.GetDefaultDomainResponseContent; import com.auth0.client.mgmt.types.ListCustomDomainsRequestParameters; +import com.auth0.client.mgmt.types.SetDefaultCustomDomainRequestContent; import com.auth0.client.mgmt.types.TestCustomDomainResponseContent; import com.auth0.client.mgmt.types.UpdateCustomDomainRequestContent; import com.auth0.client.mgmt.types.UpdateCustomDomainResponseContent; +import com.auth0.client.mgmt.types.UpdateDefaultDomainResponseContent; import com.auth0.client.mgmt.types.VerifyCustomDomainResponseContent; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference; @@ -283,6 +286,174 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { return future; } + /** + * Retrieve the tenant's default domain. + */ + public CompletableFuture> getDefault() { + return getDefault(null); + } + + /** + * Retrieve the tenant's default domain. + */ + public CompletableFuture> getDefault( + RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("custom-domains/default"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture> future = + new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, GetDefaultDomainResponseContent.class), + response)); + return; + } + try { + switch (response.code()) { + case 401: + future.completeExceptionally(new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 429: + future.completeExceptionally(new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } + + /** + * Set the default custom domain for the tenant. + */ + public CompletableFuture> setDefault( + SetDefaultCustomDomainRequestContent request) { + return setDefault(request, null); + } + + /** + * Set the default custom domain for the tenant. + */ + public CompletableFuture> setDefault( + SetDefaultCustomDomainRequestContent request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("custom-domains/default"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("PATCH", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture> future = + new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, UpdateDefaultDomainResponseContent.class), + response)); + return; + } + try { + switch (response.code()) { + case 400: + future.completeExceptionally(new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + case 403: + future.completeExceptionally(new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + future.completeExceptionally(new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response)); + return; + } catch (IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new ManagementException("Network error executing HTTP request", e)); + } + }); + return future; + } + /** * Retrieve a custom domain configuration and status. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java index ab591ced9..b9614f969 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java @@ -274,4 +274,87 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { }); return future; } + + /** + * Delete a group by its ID. + */ + public CompletableFuture> delete(String id) { + return delete(id, null); + } + + /** + * Delete a group by its ID. + */ + public CompletableFuture> delete(String id, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("groups") + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("DELETE", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + if (response.isSuccessful()) { + future.complete(new ManagementApiHttpResponse<>(null, response)); + return; + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + try { + switch (response.code()) { + case 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/AsyncRawRefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java index 456431cab..b9898f44f 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java @@ -9,18 +9,27 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.MediaTypes; 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.GetRefreshTokenResponseContent; +import com.auth0.client.mgmt.types.GetRefreshTokensPaginatedResponseContent; +import com.auth0.client.mgmt.types.GetRefreshTokensRequestParameters; +import com.auth0.client.mgmt.types.RefreshTokenResponseContent; import com.auth0.client.mgmt.types.UpdateRefreshTokenRequestContent; import com.auth0.client.mgmt.types.UpdateRefreshTokenResponseContent; 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; @@ -39,6 +48,134 @@ public AsyncRawRefreshTokensClient(ClientOptions clientOptions) { this.clientOptions = clientOptions; } + /** + * Retrieve a paginated list of refresh tokens for a specific user, with optional filtering by client ID. Results are sorted by credential_id ascending. + */ + public CompletableFuture>> list( + GetRefreshTokensRequestParameters request) { + return list(request, null); + } + + /** + * Retrieve a paginated list of refresh tokens for a specific user, with optional filtering by client ID. Results are sorted by credential_id ascending. + */ + public CompletableFuture>> list( + GetRefreshTokensRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("refresh-tokens"); + QueryStringMapper.addQueryParameter(httpUrl, "user_id", request.getUserId(), false); + if (!request.getClientId().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "client_id", request.getClientId().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); + 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 (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + 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()) { + GetRefreshTokensPaginatedResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, GetRefreshTokensPaginatedResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + GetRefreshTokensRequestParameters nextRequest = GetRefreshTokensRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = + parsedResponse.getRefreshTokens().orElse(Collections.emptyList()); + 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 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; + } + /** * Retrieve refresh token information. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRefreshTokensClient.java index 499a7f20c..631db7f3a 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRefreshTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRefreshTokensClient.java @@ -5,7 +5,10 @@ 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.GetRefreshTokenResponseContent; +import com.auth0.client.mgmt.types.GetRefreshTokensRequestParameters; +import com.auth0.client.mgmt.types.RefreshTokenResponseContent; import com.auth0.client.mgmt.types.UpdateRefreshTokenRequestContent; import com.auth0.client.mgmt.types.UpdateRefreshTokenResponseContent; import java.util.concurrent.CompletableFuture; @@ -27,6 +30,22 @@ public AsyncRawRefreshTokensClient withRawResponse() { return this.rawClient; } + /** + * Retrieve a paginated list of refresh tokens for a specific user, with optional filtering by client ID. Results are sorted by credential_id ascending. + */ + public CompletableFuture> list( + GetRefreshTokensRequestParameters request) { + return this.rawClient.list(request).thenApply(response -> response.body()); + } + + /** + * Retrieve a paginated list of refresh tokens for a specific user, with optional filtering by client ID. Results are sorted by credential_id ascending. + */ + public CompletableFuture> list( + GetRefreshTokensRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.list(request, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve refresh token information. */ diff --git a/src/main/java/com/auth0/client/mgmt/ClientsClient.java b/src/main/java/com/auth0/client/mgmt/ClientsClient.java index 56c76c366..865f931ff 100644 --- a/src/main/java/com/auth0/client/mgmt/ClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/ClientsClient.java @@ -15,6 +15,10 @@ import com.auth0.client.mgmt.types.GetClientRequestParameters; import com.auth0.client.mgmt.types.GetClientResponseContent; import com.auth0.client.mgmt.types.ListClientsRequestParameters; +import com.auth0.client.mgmt.types.PreviewCimdMetadataRequestContent; +import com.auth0.client.mgmt.types.PreviewCimdMetadataResponseContent; +import com.auth0.client.mgmt.types.RegisterCimdClientRequestContent; +import com.auth0.client.mgmt.types.RegisterCimdClientResponseContent; import com.auth0.client.mgmt.types.RotateClientSecretResponseContent; import com.auth0.client.mgmt.types.UpdateClientRequestContent; import com.auth0.client.mgmt.types.UpdateClientResponseContent; @@ -235,6 +239,44 @@ public CreateClientResponseContent create(CreateClientRequestContent request, Re return this.rawClient.create(request, requestOptions).body(); } + /** + * Fetches and validates a Client ID Metadata Document without creating a client. + * Returns the raw metadata and how it would be mapped to Auth0 client fields. + * This endpoint is useful for testing metadata URIs before creating CIMD clients. + */ + public PreviewCimdMetadataResponseContent previewCimdMetadata(PreviewCimdMetadataRequestContent request) { + return this.rawClient.previewCimdMetadata(request).body(); + } + + /** + * Fetches and validates a Client ID Metadata Document without creating a client. + * Returns the raw metadata and how it would be mapped to Auth0 client fields. + * This endpoint is useful for testing metadata URIs before creating CIMD clients. + */ + public PreviewCimdMetadataResponseContent previewCimdMetadata( + PreviewCimdMetadataRequestContent request, RequestOptions requestOptions) { + return this.rawClient.previewCimdMetadata(request, requestOptions).body(); + } + + /** + * Idempotent registration for Client ID Metadata Document (CIMD) clients. + * Uses external_client_id as the unique identifier for upsert operations. + * Create: Returns 201 when a new client is created (requires \ + */ + public RegisterCimdClientResponseContent registerCimdClient(RegisterCimdClientRequestContent request) { + return this.rawClient.registerCimdClient(request).body(); + } + + /** + * Idempotent registration for Client ID Metadata Document (CIMD) clients. + * Uses external_client_id as the unique identifier for upsert operations. + * Create: Returns 201 when a new client is created (requires \ + */ + public RegisterCimdClientResponseContent registerCimdClient( + RegisterCimdClientRequestContent request, RequestOptions requestOptions) { + return this.rawClient.registerCimdClient(request, requestOptions).body(); + } + /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. * For more information, read Applications in Auth0 and Single Sign-On. diff --git a/src/main/java/com/auth0/client/mgmt/CustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/CustomDomainsClient.java index 304cb7223..03f7868b2 100644 --- a/src/main/java/com/auth0/client/mgmt/CustomDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/CustomDomainsClient.java @@ -9,10 +9,13 @@ import com.auth0.client.mgmt.types.CreateCustomDomainResponseContent; import com.auth0.client.mgmt.types.CustomDomain; import com.auth0.client.mgmt.types.GetCustomDomainResponseContent; +import com.auth0.client.mgmt.types.GetDefaultDomainResponseContent; import com.auth0.client.mgmt.types.ListCustomDomainsRequestParameters; +import com.auth0.client.mgmt.types.SetDefaultCustomDomainRequestContent; import com.auth0.client.mgmt.types.TestCustomDomainResponseContent; import com.auth0.client.mgmt.types.UpdateCustomDomainRequestContent; import com.auth0.client.mgmt.types.UpdateCustomDomainResponseContent; +import com.auth0.client.mgmt.types.UpdateDefaultDomainResponseContent; import com.auth0.client.mgmt.types.VerifyCustomDomainResponseContent; import java.util.List; @@ -98,6 +101,35 @@ public CreateCustomDomainResponseContent create( return this.rawClient.create(request, requestOptions).body(); } + /** + * Retrieve the tenant's default domain. + */ + public GetDefaultDomainResponseContent getDefault() { + return this.rawClient.getDefault().body(); + } + + /** + * Retrieve the tenant's default domain. + */ + public GetDefaultDomainResponseContent getDefault(RequestOptions requestOptions) { + return this.rawClient.getDefault(requestOptions).body(); + } + + /** + * Set the default custom domain for the tenant. + */ + public UpdateDefaultDomainResponseContent setDefault(SetDefaultCustomDomainRequestContent request) { + return this.rawClient.setDefault(request).body(); + } + + /** + * Set the default custom domain for the tenant. + */ + public UpdateDefaultDomainResponseContent setDefault( + SetDefaultCustomDomainRequestContent request, RequestOptions requestOptions) { + return this.rawClient.setDefault(request, requestOptions).body(); + } + /** * Retrieve a custom domain configuration and status. */ diff --git a/src/main/java/com/auth0/client/mgmt/GroupsClient.java b/src/main/java/com/auth0/client/mgmt/GroupsClient.java index 1f0ced1c2..6754aaa32 100644 --- a/src/main/java/com/auth0/client/mgmt/GroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/GroupsClient.java @@ -75,6 +75,20 @@ public GetGroupResponseContent get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); } + /** + * Delete a group by its ID. + */ + public void delete(String id) { + this.rawClient.delete(id).body(); + } + + /** + * Delete a group by its ID. + */ + public void delete(String id, RequestOptions requestOptions) { + this.rawClient.delete(id, requestOptions).body(); + } + public MembersClient members() { return this.membersClient.get(); } diff --git a/src/main/java/com/auth0/client/mgmt/RawClientsClient.java b/src/main/java/com/auth0/client/mgmt/RawClientsClient.java index 08099a14d..f5b498090 100644 --- a/src/main/java/com/auth0/client/mgmt/RawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawClientsClient.java @@ -15,6 +15,7 @@ import com.auth0.client.mgmt.errors.BadRequestError; import com.auth0.client.mgmt.errors.ConflictError; import com.auth0.client.mgmt.errors.ForbiddenError; +import com.auth0.client.mgmt.errors.InternalServerError; import com.auth0.client.mgmt.errors.NotFoundError; import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; @@ -25,6 +26,10 @@ import com.auth0.client.mgmt.types.GetClientResponseContent; import com.auth0.client.mgmt.types.ListClientsOffsetPaginatedResponseContent; import com.auth0.client.mgmt.types.ListClientsRequestParameters; +import com.auth0.client.mgmt.types.PreviewCimdMetadataRequestContent; +import com.auth0.client.mgmt.types.PreviewCimdMetadataResponseContent; +import com.auth0.client.mgmt.types.RegisterCimdClientRequestContent; +import com.auth0.client.mgmt.types.RegisterCimdClientResponseContent; import com.auth0.client.mgmt.types.RotateClientSecretResponseContent; import com.auth0.client.mgmt.types.UpdateClientRequestContent; import com.auth0.client.mgmt.types.UpdateClientResponseContent; @@ -225,6 +230,10 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "app_type", request.getAppType().orElse(null), false); } + if (!request.getExternalClientId().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "external_client_id", request.getExternalClientId().orElse(null), false); + } if (!request.getQ().isAbsent()) { QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().orElse(null), false); } @@ -389,6 +398,168 @@ public ManagementApiHttpResponse create( } } + /** + * Fetches and validates a Client ID Metadata Document without creating a client. + * Returns the raw metadata and how it would be mapped to Auth0 client fields. + * This endpoint is useful for testing metadata URIs before creating CIMD clients. + */ + public ManagementApiHttpResponse previewCimdMetadata( + PreviewCimdMetadataRequestContent request) { + return previewCimdMetadata(request, null); + } + + /** + * Fetches and validates a Client ID Metadata Document without creating a client. + * Returns the raw metadata and how it would be mapped to Auth0 client fields. + * This endpoint is useful for testing metadata URIs before creating CIMD clients. + */ + public ManagementApiHttpResponse previewCimdMetadata( + PreviewCimdMetadataRequestContent request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("clients/cimd/preview"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("POST", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, PreviewCimdMetadataResponseContent.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 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 500: + throw new InternalServerError( + 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); + } + } + + /** + * Idempotent registration for Client ID Metadata Document (CIMD) clients. + * Uses external_client_id as the unique identifier for upsert operations. + * Create: Returns 201 when a new client is created (requires \ + */ + public ManagementApiHttpResponse registerCimdClient( + RegisterCimdClientRequestContent request) { + return registerCimdClient(request, null); + } + + /** + * Idempotent registration for Client ID Metadata Document (CIMD) clients. + * Uses external_client_id as the unique identifier for upsert operations. + * Create: Returns 201 when a new client is created (requires \ + */ + public ManagementApiHttpResponse registerCimdClient( + RegisterCimdClientRequestContent request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("clients/cimd/register"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("POST", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, RegisterCimdClientResponseContent.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 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 500: + throw new InternalServerError( + 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 client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. * For more information, read Applications in Auth0 and Single Sign-On. diff --git a/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java index 573008d63..a86f00715 100644 --- a/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java @@ -21,10 +21,13 @@ import com.auth0.client.mgmt.types.CreateCustomDomainResponseContent; import com.auth0.client.mgmt.types.CustomDomain; import com.auth0.client.mgmt.types.GetCustomDomainResponseContent; +import com.auth0.client.mgmt.types.GetDefaultDomainResponseContent; import com.auth0.client.mgmt.types.ListCustomDomainsRequestParameters; +import com.auth0.client.mgmt.types.SetDefaultCustomDomainRequestContent; import com.auth0.client.mgmt.types.TestCustomDomainResponseContent; import com.auth0.client.mgmt.types.UpdateCustomDomainRequestContent; import com.auth0.client.mgmt.types.UpdateCustomDomainResponseContent; +import com.auth0.client.mgmt.types.UpdateDefaultDomainResponseContent; import com.auth0.client.mgmt.types.VerifyCustomDomainResponseContent; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference; @@ -235,6 +238,134 @@ public ManagementApiHttpResponse create( } } + /** + * Retrieve the tenant's default domain. + */ + public ManagementApiHttpResponse getDefault() { + return getDefault(null); + } + + /** + * Retrieve the tenant's default domain. + */ + public ManagementApiHttpResponse getDefault(RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("custom-domains/default"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, GetDefaultDomainResponseContent.class), + response); + } + try { + switch (response.code()) { + case 401: + throw new UnauthorizedError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 429: + throw new TooManyRequestsError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } + + /** + * Set the default custom domain for the tenant. + */ + public ManagementApiHttpResponse setDefault( + SetDefaultCustomDomainRequestContent request) { + return setDefault(request, null); + } + + /** + * Set the default custom domain for the tenant. + */ + public ManagementApiHttpResponse setDefault( + SetDefaultCustomDomainRequestContent request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("custom-domains/default"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON); + } catch (JsonProcessingException e) { + throw new ManagementException("Failed to serialize request", e); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("PATCH", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, UpdateDefaultDomainResponseContent.class), + response); + } + try { + switch (response.code()) { + case 400: + throw new BadRequestError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + case 403: + throw new ForbiddenError( + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response); + } + } catch (JsonProcessingException ignored) { + // unable to map error response, throwing generic error + } + Object errorBody = ObjectMappers.parseErrorBody(responseBodyString); + throw new ManagementApiException( + "Error with status code " + response.code(), response.code(), errorBody, response); + } catch (IOException e) { + throw new ManagementException("Network error executing HTTP request", e); + } + } + /** * Retrieve a custom domain configuration and status. */ diff --git a/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java index 5b5eca032..2d15d2cdc 100644 --- a/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java @@ -217,4 +217,66 @@ public ManagementApiHttpResponse get(String id, Request throw new ManagementException("Network error executing HTTP request", e); } } + + /** + * Delete a group by its ID. + */ + public ManagementApiHttpResponse delete(String id) { + return delete(id, null); + } + + /** + * Delete a group by its ID. + */ + public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("groups") + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + Request okhttpRequest = new Request.Builder() + .url(httpUrl.build()) + .method("DELETE", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + if (response.isSuccessful()) { + return new ManagementApiHttpResponse<>(null, response); + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + try { + switch (response.code()) { + case 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/RawRefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java index 6be14819c..39dd68f03 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java @@ -9,17 +9,25 @@ import com.auth0.client.mgmt.core.ManagementException; import com.auth0.client.mgmt.core.MediaTypes; 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.GetRefreshTokenResponseContent; +import com.auth0.client.mgmt.types.GetRefreshTokensPaginatedResponseContent; +import com.auth0.client.mgmt.types.GetRefreshTokensRequestParameters; +import com.auth0.client.mgmt.types.RefreshTokenResponseContent; import com.auth0.client.mgmt.types.UpdateRefreshTokenRequestContent; import com.auth0.client.mgmt.types.UpdateRefreshTokenResponseContent; 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; @@ -35,6 +43,104 @@ public RawRefreshTokensClient(ClientOptions clientOptions) { this.clientOptions = clientOptions; } + /** + * Retrieve a paginated list of refresh tokens for a specific user, with optional filtering by client ID. Results are sorted by credential_id ascending. + */ + public ManagementApiHttpResponse> list( + GetRefreshTokensRequestParameters request) { + return list(request, null); + } + + /** + * Retrieve a paginated list of refresh tokens for a specific user, with optional filtering by client ID. Results are sorted by credential_id ascending. + */ + public ManagementApiHttpResponse> list( + GetRefreshTokensRequestParameters request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("refresh-tokens"); + QueryStringMapper.addQueryParameter(httpUrl, "user_id", request.getUserId(), false); + if (!request.getClientId().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "client_id", request.getClientId().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); + 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 (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } + 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()) { + GetRefreshTokensPaginatedResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, GetRefreshTokensPaginatedResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + GetRefreshTokensRequestParameters nextRequest = GetRefreshTokensRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = + parsedResponse.getRefreshTokens().orElse(Collections.emptyList()); + 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 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); + } + } + /** * Retrieve refresh token information. */ diff --git a/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java index 6d0a5aa1a..18fe75675 100644 --- a/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java @@ -5,7 +5,10 @@ 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.GetRefreshTokenResponseContent; +import com.auth0.client.mgmt.types.GetRefreshTokensRequestParameters; +import com.auth0.client.mgmt.types.RefreshTokenResponseContent; import com.auth0.client.mgmt.types.UpdateRefreshTokenRequestContent; import com.auth0.client.mgmt.types.UpdateRefreshTokenResponseContent; @@ -26,6 +29,21 @@ public RawRefreshTokensClient withRawResponse() { return this.rawClient; } + /** + * Retrieve a paginated list of refresh tokens for a specific user, with optional filtering by client ID. Results are sorted by credential_id ascending. + */ + public SyncPagingIterable list(GetRefreshTokensRequestParameters request) { + return this.rawClient.list(request).body(); + } + + /** + * Retrieve a paginated list of refresh tokens for a specific user, with optional filtering by client ID. Results are sorted by credential_id ascending. + */ + public SyncPagingIterable list( + GetRefreshTokensRequestParameters request, RequestOptions requestOptions) { + return this.rawClient.list(request, requestOptions).body(); + } + /** * Retrieve refresh token information. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncBindingsClient.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncBindingsClient.java index b557a63de..7d1090def 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncBindingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncBindingsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ActionBinding; +import com.auth0.client.mgmt.types.ActionTriggerTypeEnum; import com.auth0.client.mgmt.types.UpdateActionBindingsResponseContent; import java.util.concurrent.CompletableFuture; @@ -32,14 +33,15 @@ public AsyncRawBindingsClient withRawResponse() { /** * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ - public CompletableFuture> list(String triggerId) { + public CompletableFuture> list(ActionTriggerTypeEnum triggerId) { return this.rawClient.list(triggerId).thenApply(response -> response.body()); } /** * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ - public CompletableFuture> list(String triggerId, RequestOptions requestOptions) { + public CompletableFuture> list( + ActionTriggerTypeEnum triggerId, RequestOptions requestOptions) { return this.rawClient.list(triggerId, requestOptions).thenApply(response -> response.body()); } @@ -47,7 +49,7 @@ public CompletableFuture> list(String triggerI * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ public CompletableFuture> list( - String triggerId, ListActionTriggerBindingsRequestParameters request) { + ActionTriggerTypeEnum triggerId, ListActionTriggerBindingsRequestParameters request) { return this.rawClient.list(triggerId, request).thenApply(response -> response.body()); } @@ -55,14 +57,16 @@ public CompletableFuture> list( * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ public CompletableFuture> list( - String triggerId, ListActionTriggerBindingsRequestParameters request, RequestOptions requestOptions) { + ActionTriggerTypeEnum triggerId, + ListActionTriggerBindingsRequestParameters request, + RequestOptions requestOptions) { return this.rawClient.list(triggerId, request, requestOptions).thenApply(response -> response.body()); } /** * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ - public CompletableFuture updateMany(String triggerId) { + public CompletableFuture updateMany(ActionTriggerTypeEnum triggerId) { return this.rawClient.updateMany(triggerId).thenApply(response -> response.body()); } @@ -70,7 +74,7 @@ public CompletableFuture updateMany(String * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ public CompletableFuture updateMany( - String triggerId, RequestOptions requestOptions) { + ActionTriggerTypeEnum triggerId, RequestOptions requestOptions) { return this.rawClient.updateMany(triggerId, requestOptions).thenApply(response -> response.body()); } @@ -78,7 +82,7 @@ public CompletableFuture updateMany( * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ public CompletableFuture updateMany( - String triggerId, UpdateActionBindingsRequestContent request) { + ActionTriggerTypeEnum triggerId, UpdateActionBindingsRequestContent request) { return this.rawClient.updateMany(triggerId, request).thenApply(response -> response.body()); } @@ -86,7 +90,9 @@ public CompletableFuture updateMany( * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ public CompletableFuture updateMany( - String triggerId, UpdateActionBindingsRequestContent request, RequestOptions requestOptions) { + ActionTriggerTypeEnum triggerId, + UpdateActionBindingsRequestContent request, + RequestOptions requestOptions) { return this.rawClient.updateMany(triggerId, request, requestOptions).thenApply(response -> response.body()); } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncRawBindingsClient.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncRawBindingsClient.java index adb6d141e..e1984a1d2 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncRawBindingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncRawBindingsClient.java @@ -19,6 +19,7 @@ import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.types.ActionBinding; +import com.auth0.client.mgmt.types.ActionTriggerTypeEnum; import com.auth0.client.mgmt.types.ListActionBindingsPaginatedResponseContent; import com.auth0.client.mgmt.types.UpdateActionBindingsResponseContent; import com.fasterxml.jackson.core.JsonProcessingException; @@ -48,7 +49,8 @@ public AsyncRawBindingsClient(ClientOptions clientOptions) { /** * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ - public CompletableFuture>> list(String triggerId) { + public CompletableFuture>> list( + ActionTriggerTypeEnum triggerId) { return list( triggerId, ListActionTriggerBindingsRequestParameters.builder().build()); } @@ -57,7 +59,7 @@ public CompletableFuture>> list( - String triggerId, RequestOptions requestOptions) { + ActionTriggerTypeEnum triggerId, RequestOptions requestOptions) { return list( triggerId, ListActionTriggerBindingsRequestParameters.builder().build(), requestOptions); } @@ -66,7 +68,7 @@ public CompletableFuture>> list( - String triggerId, ListActionTriggerBindingsRequestParameters request) { + ActionTriggerTypeEnum triggerId, ListActionTriggerBindingsRequestParameters request) { return list(triggerId, request, null); } @@ -74,11 +76,13 @@ public CompletableFuture>> list( - String triggerId, ListActionTriggerBindingsRequestParameters request, RequestOptions requestOptions) { + ActionTriggerTypeEnum triggerId, + ListActionTriggerBindingsRequestParameters request, + RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/triggers") - .addPathSegment(triggerId) + .addPathSegment(triggerId.toString()) .addPathSegments("bindings"); QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( @@ -178,7 +182,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ public CompletableFuture> updateMany( - String triggerId) { + ActionTriggerTypeEnum triggerId) { return updateMany( triggerId, UpdateActionBindingsRequestContent.builder().build()); } @@ -187,7 +191,7 @@ public CompletableFuture> updateMany( - String triggerId, RequestOptions requestOptions) { + ActionTriggerTypeEnum triggerId, RequestOptions requestOptions) { return updateMany( triggerId, UpdateActionBindingsRequestContent.builder().build(), requestOptions); } @@ -196,7 +200,7 @@ public CompletableFuture> updateMany( - String triggerId, UpdateActionBindingsRequestContent request) { + ActionTriggerTypeEnum triggerId, UpdateActionBindingsRequestContent request) { return updateMany(triggerId, request, null); } @@ -204,11 +208,13 @@ public CompletableFuture> updateMany( - String triggerId, UpdateActionBindingsRequestContent request, RequestOptions requestOptions) { + ActionTriggerTypeEnum triggerId, + UpdateActionBindingsRequestContent request, + RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/triggers") - .addPathSegment(triggerId) + .addPathSegment(triggerId.toString()) .addPathSegments("bindings"); if (requestOptions != null) { requestOptions.getQueryParameters().forEach((_key, _value) -> { diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/BindingsClient.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/BindingsClient.java index c6860807c..6d32145e1 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/triggers/BindingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/BindingsClient.java @@ -9,6 +9,7 @@ import com.auth0.client.mgmt.core.RequestOptions; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ActionBinding; +import com.auth0.client.mgmt.types.ActionTriggerTypeEnum; import com.auth0.client.mgmt.types.UpdateActionBindingsResponseContent; public class BindingsClient { @@ -31,14 +32,14 @@ public RawBindingsClient withRawResponse() { /** * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ - public SyncPagingIterable list(String triggerId) { + public SyncPagingIterable list(ActionTriggerTypeEnum triggerId) { return this.rawClient.list(triggerId).body(); } /** * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ - public SyncPagingIterable list(String triggerId, RequestOptions requestOptions) { + public SyncPagingIterable list(ActionTriggerTypeEnum triggerId, RequestOptions requestOptions) { return this.rawClient.list(triggerId, requestOptions).body(); } @@ -46,7 +47,7 @@ public SyncPagingIterable list(String triggerId, RequestOptions r * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ public SyncPagingIterable list( - String triggerId, ListActionTriggerBindingsRequestParameters request) { + ActionTriggerTypeEnum triggerId, ListActionTriggerBindingsRequestParameters request) { return this.rawClient.list(triggerId, request).body(); } @@ -54,21 +55,24 @@ public SyncPagingIterable list( * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ public SyncPagingIterable list( - String triggerId, ListActionTriggerBindingsRequestParameters request, RequestOptions requestOptions) { + ActionTriggerTypeEnum triggerId, + ListActionTriggerBindingsRequestParameters request, + RequestOptions requestOptions) { return this.rawClient.list(triggerId, request, requestOptions).body(); } /** * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ - public UpdateActionBindingsResponseContent updateMany(String triggerId) { + public UpdateActionBindingsResponseContent updateMany(ActionTriggerTypeEnum triggerId) { return this.rawClient.updateMany(triggerId).body(); } /** * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ - public UpdateActionBindingsResponseContent updateMany(String triggerId, RequestOptions requestOptions) { + public UpdateActionBindingsResponseContent updateMany( + ActionTriggerTypeEnum triggerId, RequestOptions requestOptions) { return this.rawClient.updateMany(triggerId, requestOptions).body(); } @@ -76,7 +80,7 @@ public UpdateActionBindingsResponseContent updateMany(String triggerId, RequestO * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ public UpdateActionBindingsResponseContent updateMany( - String triggerId, UpdateActionBindingsRequestContent request) { + ActionTriggerTypeEnum triggerId, UpdateActionBindingsRequestContent request) { return this.rawClient.updateMany(triggerId, request).body(); } @@ -84,7 +88,9 @@ public UpdateActionBindingsResponseContent updateMany( * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ public UpdateActionBindingsResponseContent updateMany( - String triggerId, UpdateActionBindingsRequestContent request, RequestOptions requestOptions) { + ActionTriggerTypeEnum triggerId, + UpdateActionBindingsRequestContent request, + RequestOptions requestOptions) { return this.rawClient.updateMany(triggerId, request, requestOptions).body(); } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/RawBindingsClient.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/RawBindingsClient.java index ed8f68979..16b425983 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/triggers/RawBindingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/RawBindingsClient.java @@ -19,6 +19,7 @@ import com.auth0.client.mgmt.errors.TooManyRequestsError; import com.auth0.client.mgmt.errors.UnauthorizedError; import com.auth0.client.mgmt.types.ActionBinding; +import com.auth0.client.mgmt.types.ActionTriggerTypeEnum; import com.auth0.client.mgmt.types.ListActionBindingsPaginatedResponseContent; import com.auth0.client.mgmt.types.UpdateActionBindingsResponseContent; import com.fasterxml.jackson.core.JsonProcessingException; @@ -43,7 +44,7 @@ public RawBindingsClient(ClientOptions clientOptions) { /** * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ - public ManagementApiHttpResponse> list(String triggerId) { + public ManagementApiHttpResponse> list(ActionTriggerTypeEnum triggerId) { return list( triggerId, ListActionTriggerBindingsRequestParameters.builder().build()); } @@ -52,7 +53,7 @@ public ManagementApiHttpResponse> list(String * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ public ManagementApiHttpResponse> list( - String triggerId, RequestOptions requestOptions) { + ActionTriggerTypeEnum triggerId, RequestOptions requestOptions) { return list( triggerId, ListActionTriggerBindingsRequestParameters.builder().build(), requestOptions); } @@ -61,7 +62,7 @@ public ManagementApiHttpResponse> list( * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ public ManagementApiHttpResponse> list( - String triggerId, ListActionTriggerBindingsRequestParameters request) { + ActionTriggerTypeEnum triggerId, ListActionTriggerBindingsRequestParameters request) { return list(triggerId, request, null); } @@ -69,11 +70,13 @@ public ManagementApiHttpResponse> list( * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ public ManagementApiHttpResponse> list( - String triggerId, ListActionTriggerBindingsRequestParameters request, RequestOptions requestOptions) { + ActionTriggerTypeEnum triggerId, + ListActionTriggerBindingsRequestParameters request, + RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/triggers") - .addPathSegment(triggerId) + .addPathSegment(triggerId.toString()) .addPathSegments("bindings"); QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( @@ -142,7 +145,7 @@ public ManagementApiHttpResponse> list( /** * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ - public ManagementApiHttpResponse updateMany(String triggerId) { + public ManagementApiHttpResponse updateMany(ActionTriggerTypeEnum triggerId) { return updateMany( triggerId, UpdateActionBindingsRequestContent.builder().build()); } @@ -151,7 +154,7 @@ public ManagementApiHttpResponse updateMany * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ public ManagementApiHttpResponse updateMany( - String triggerId, RequestOptions requestOptions) { + ActionTriggerTypeEnum triggerId, RequestOptions requestOptions) { return updateMany( triggerId, UpdateActionBindingsRequestContent.builder().build(), requestOptions); } @@ -160,7 +163,7 @@ public ManagementApiHttpResponse updateMany * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ public ManagementApiHttpResponse updateMany( - String triggerId, UpdateActionBindingsRequestContent request) { + ActionTriggerTypeEnum triggerId, UpdateActionBindingsRequestContent request) { return updateMany(triggerId, request, null); } @@ -168,11 +171,13 @@ public ManagementApiHttpResponse updateMany * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ public ManagementApiHttpResponse updateMany( - String triggerId, UpdateActionBindingsRequestContent request, RequestOptions requestOptions) { + ActionTriggerTypeEnum triggerId, + UpdateActionBindingsRequestContent request, + RequestOptions requestOptions) { HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/triggers") - .addPathSegment(triggerId) + .addPathSegment(triggerId.toString()) .addPathSegments("bindings"); if (requestOptions != null) { requestOptions.getQueryParameters().forEach((_key, _value) -> { diff --git a/src/main/java/com/auth0/client/mgmt/clients/types/PostClientCredentialRequestContent.java b/src/main/java/com/auth0/client/mgmt/clients/types/PostClientCredentialRequestContent.java index 074cdfd1f..689a43185 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/types/PostClientCredentialRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/clients/types/PostClientCredentialRequestContent.java @@ -38,6 +38,8 @@ public final class PostClientCredentialRequestContent { private final Optional expiresAt; + private final Optional kid; + private final Map additionalProperties; private PostClientCredentialRequestContent( @@ -48,6 +50,7 @@ private PostClientCredentialRequestContent( Optional alg, Optional parseExpiryFromCert, Optional expiresAt, + Optional kid, Map additionalProperties) { this.credentialType = credentialType; this.name = name; @@ -56,6 +59,7 @@ private PostClientCredentialRequestContent( this.alg = alg; this.parseExpiryFromCert = parseExpiryFromCert; this.expiresAt = expiresAt; + this.kid = kid; this.additionalProperties = additionalProperties; } @@ -109,6 +113,14 @@ public Optional getExpiresAt() { return expiresAt; } + /** + * @return Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64} + */ + @JsonProperty("kid") + public Optional getKid() { + return kid; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -128,7 +140,8 @@ private boolean equalTo(PostClientCredentialRequestContent other) { && pem.equals(other.pem) && alg.equals(other.alg) && parseExpiryFromCert.equals(other.parseExpiryFromCert) - && expiresAt.equals(other.expiresAt); + && expiresAt.equals(other.expiresAt) + && kid.equals(other.kid); } @java.lang.Override @@ -140,7 +153,8 @@ public int hashCode() { this.pem, this.alg, this.parseExpiryFromCert, - this.expiresAt); + this.expiresAt, + this.kid); } @java.lang.Override @@ -203,12 +217,21 @@ public interface _FinalStage { _FinalStage expiresAt(Optional expiresAt); _FinalStage expiresAt(OffsetDateTime expiresAt); + + /** + *

Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64}

+ */ + _FinalStage kid(Optional kid); + + _FinalStage kid(String kid); } @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder implements CredentialTypeStage, _FinalStage { private ClientCredentialTypeEnum credentialType; + private Optional kid = Optional.empty(); + private Optional expiresAt = Optional.empty(); private Optional parseExpiryFromCert = Optional.empty(); @@ -235,6 +258,7 @@ public Builder from(PostClientCredentialRequestContent other) { alg(other.getAlg()); parseExpiryFromCert(other.getParseExpiryFromCert()); expiresAt(other.getExpiresAt()); + kid(other.getKid()); return this; } @@ -245,6 +269,26 @@ public _FinalStage credentialType(@NotNull ClientCredentialTypeEnum credentialTy return this; } + /** + *

Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64}

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

Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64}

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

The ISO 8601 formatted date representing the expiration of the credential. If not specified (not recommended), the credential never expires. Applies to public_key credential type.

* @return Reference to {@code this} so that method calls can be chained together. @@ -361,7 +405,15 @@ public _FinalStage name(Optional name) { @java.lang.Override public PostClientCredentialRequestContent build() { return new PostClientCredentialRequestContent( - credentialType, name, subjectDn, pem, alg, parseExpiryFromCert, expiresAt, additionalProperties); + credentialType, + name, + subjectDn, + pem, + alg, + parseExpiryFromCert, + expiresAt, + kid, + additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncDiscoveryDomainsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncDiscoveryDomainsClient.java index d938c33fe..d06894c7d 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncDiscoveryDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncDiscoveryDomainsClient.java @@ -35,6 +35,7 @@ public AsyncRawDiscoveryDomainsClient withRawResponse() { /** * Retrieve list of all organization discovery domains associated with the specified organization. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); @@ -42,6 +43,7 @@ public CompletableFuture> list(S /** * Retrieve list of all organization discovery domains associated with the specified organization. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public CompletableFuture> list( String id, RequestOptions requestOptions) { @@ -50,6 +52,7 @@ public CompletableFuture> list( /** * Retrieve list of all organization discovery domains associated with the specified organization. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public CompletableFuture> list( String id, ListOrganizationDiscoveryDomainsRequestParameters request) { @@ -58,6 +61,7 @@ public CompletableFuture> list( /** * Retrieve list of all organization discovery domains associated with the specified organization. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public CompletableFuture> list( String id, ListOrganizationDiscoveryDomainsRequestParameters request, RequestOptions requestOptions) { @@ -82,6 +86,7 @@ public CompletableFuture creat /** * Retrieve details about a single organization discovery domain specified by domain name. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public CompletableFuture getByName( String id, String discoveryDomain) { @@ -90,6 +95,7 @@ public CompletableFuture ge /** * Retrieve details about a single organization discovery domain specified by domain name. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public CompletableFuture getByName( String id, String discoveryDomain, RequestOptions requestOptions) { @@ -98,6 +104,7 @@ public CompletableFuture ge /** * Retrieve details about a single organization discovery domain specified by ID. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public CompletableFuture get(String id, String discoveryDomainId) { return this.rawClient.get(id, discoveryDomainId).thenApply(response -> response.body()); @@ -105,6 +112,7 @@ public CompletableFuture get(Stri /** * Retrieve details about a single organization discovery domain specified by ID. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public CompletableFuture get( String id, String discoveryDomainId, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java index c32528605..24bda7f45 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java @@ -53,6 +53,7 @@ public AsyncRawDiscoveryDomainsClient(ClientOptions clientOptions) { /** * Retrieve list of all organization discovery domains associated with the specified organization. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public CompletableFuture>> list( String id) { @@ -62,6 +63,7 @@ public CompletableFuture>> list( String id, RequestOptions requestOptions) { @@ -71,6 +73,7 @@ public CompletableFuture>> list( String id, ListOrganizationDiscoveryDomainsRequestParameters request) { @@ -79,6 +82,7 @@ public CompletableFuture>> list( String id, ListOrganizationDiscoveryDomainsRequestParameters request, RequestOptions requestOptions) { @@ -297,6 +301,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Retrieve details about a single organization discovery domain specified by domain name. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public CompletableFuture> getByName( String id, String discoveryDomain) { @@ -305,6 +310,7 @@ public CompletableFuture> getByName( String id, String discoveryDomain, RequestOptions requestOptions) { @@ -393,6 +399,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Retrieve details about a single organization discovery domain specified by ID. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public CompletableFuture> get( String id, String discoveryDomainId) { @@ -401,6 +408,7 @@ public CompletableFuture> get( String id, String discoveryDomainId, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/organizations/DiscoveryDomainsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/DiscoveryDomainsClient.java index 294ac0130..13131792d 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/DiscoveryDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/DiscoveryDomainsClient.java @@ -34,6 +34,7 @@ public RawDiscoveryDomainsClient withRawResponse() { /** * Retrieve list of all organization discovery domains associated with the specified organization. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); @@ -41,6 +42,7 @@ public SyncPagingIterable list(String id) { /** * Retrieve list of all organization discovery domains associated with the specified organization. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public SyncPagingIterable list(String id, RequestOptions requestOptions) { return this.rawClient.list(id, requestOptions).body(); @@ -48,6 +50,7 @@ public SyncPagingIterable list(String id, RequestOp /** * Retrieve list of all organization discovery domains associated with the specified organization. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public SyncPagingIterable list( String id, ListOrganizationDiscoveryDomainsRequestParameters request) { @@ -56,6 +59,7 @@ public SyncPagingIterable list( /** * Retrieve list of all organization discovery domains associated with the specified organization. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public SyncPagingIterable list( String id, ListOrganizationDiscoveryDomainsRequestParameters request, RequestOptions requestOptions) { @@ -80,6 +84,7 @@ public CreateOrganizationDiscoveryDomainResponseContent create( /** * Retrieve details about a single organization discovery domain specified by domain name. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public GetOrganizationDiscoveryDomainByNameResponseContent getByName(String id, String discoveryDomain) { return this.rawClient.getByName(id, discoveryDomain).body(); @@ -87,6 +92,7 @@ public GetOrganizationDiscoveryDomainByNameResponseContent getByName(String id, /** * Retrieve details about a single organization discovery domain specified by domain name. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public GetOrganizationDiscoveryDomainByNameResponseContent getByName( String id, String discoveryDomain, RequestOptions requestOptions) { @@ -95,6 +101,7 @@ public GetOrganizationDiscoveryDomainByNameResponseContent getByName( /** * Retrieve details about a single organization discovery domain specified by ID. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public GetOrganizationDiscoveryDomainResponseContent get(String id, String discoveryDomainId) { return this.rawClient.get(id, discoveryDomainId).body(); @@ -102,6 +109,7 @@ public GetOrganizationDiscoveryDomainResponseContent get(String id, String disco /** * Retrieve details about a single organization discovery domain specified by ID. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public GetOrganizationDiscoveryDomainResponseContent get( String id, String discoveryDomainId, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java index c10b3aad6..feefc9497 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java @@ -48,6 +48,7 @@ public RawDiscoveryDomainsClient(ClientOptions clientOptions) { /** * Retrieve list of all organization discovery domains associated with the specified organization. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public ManagementApiHttpResponse> list(String id) { return list( @@ -56,6 +57,7 @@ public ManagementApiHttpResponse /** * Retrieve list of all organization discovery domains associated with the specified organization. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public ManagementApiHttpResponse> list( String id, RequestOptions requestOptions) { @@ -65,6 +67,7 @@ public ManagementApiHttpResponse /** * Retrieve list of all organization discovery domains associated with the specified organization. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public ManagementApiHttpResponse> list( String id, ListOrganizationDiscoveryDomainsRequestParameters request) { @@ -73,6 +76,7 @@ public ManagementApiHttpResponse /** * Retrieve list of all organization discovery domains associated with the specified organization. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public ManagementApiHttpResponse> list( String id, ListOrganizationDiscoveryDomainsRequestParameters request, RequestOptions requestOptions) { @@ -234,6 +238,7 @@ public ManagementApiHttpResponse getByName( String id, String discoveryDomain) { @@ -242,6 +247,7 @@ public ManagementApiHttpResponse getByName( String id, String discoveryDomain, RequestOptions requestOptions) { @@ -306,6 +312,7 @@ public ManagementApiHttpResponse get( String id, String discoveryDomainId) { @@ -314,6 +321,7 @@ public ManagementApiHttpResponse /** * Retrieve details about a single organization discovery domain specified by ID. + * This endpoint is subject to eventual consistency; newly created, updated, or deleted discovery domains may not immediately appear in the response. */ public ManagementApiHttpResponse get( String id, String discoveryDomainId, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/prompts/types/UpdateAculRequestContent.java b/src/main/java/com/auth0/client/mgmt/prompts/types/UpdateAculRequestContent.java index ae81ec03a..0c68fa1cd 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/types/UpdateAculRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/types/UpdateAculRequestContent.java @@ -30,13 +30,13 @@ public final class UpdateAculRequestContent { private final Optional renderingMode; - private final Optional> contextConfiguration; + private final OptionalNullable> contextConfiguration; private final OptionalNullable defaultHeadTagsDisabled; private final OptionalNullable usePageTemplate; - private final Optional> headTags; + private final OptionalNullable> headTags; private final OptionalNullable filters; @@ -44,10 +44,10 @@ public final class UpdateAculRequestContent { private UpdateAculRequestContent( Optional renderingMode, - Optional> contextConfiguration, + OptionalNullable> contextConfiguration, OptionalNullable defaultHeadTagsDisabled, OptionalNullable usePageTemplate, - Optional> headTags, + OptionalNullable> headTags, OptionalNullable filters, Map additionalProperties) { this.renderingMode = renderingMode; @@ -67,8 +67,12 @@ public Optional getRenderingMode() { return renderingMode; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("context_configuration") - public Optional> getContextConfiguration() { + public OptionalNullable> getContextConfiguration() { + if (contextConfiguration == null) { + return OptionalNullable.absent(); + } return contextConfiguration; } @@ -99,8 +103,12 @@ public OptionalNullable getUsePageTemplate() { /** * @return An array of head tags */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("head_tags") - public Optional> getHeadTags() { + public OptionalNullable> getHeadTags() { + if (headTags == null) { + return OptionalNullable.absent(); + } return headTags; } @@ -113,6 +121,12 @@ public OptionalNullable getFilters() { return filters; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("context_configuration") + private OptionalNullable> _getContextConfiguration() { + return contextConfiguration; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("default_head_tags_disabled") private OptionalNullable _getDefaultHeadTagsDisabled() { @@ -125,6 +139,12 @@ private OptionalNullable _getUsePageTemplate() { return usePageTemplate; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("head_tags") + private OptionalNullable> _getHeadTags() { + return headTags; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("filters") private OptionalNullable _getFilters() { @@ -175,13 +195,13 @@ public static Builder builder() { public static final class Builder { private Optional renderingMode = Optional.empty(); - private Optional> contextConfiguration = Optional.empty(); + private OptionalNullable> contextConfiguration = OptionalNullable.absent(); private OptionalNullable defaultHeadTagsDisabled = OptionalNullable.absent(); private OptionalNullable usePageTemplate = OptionalNullable.absent(); - private Optional> headTags = Optional.empty(); + private OptionalNullable> headTags = OptionalNullable.absent(); private OptionalNullable filters = OptionalNullable.absent(); @@ -215,13 +235,35 @@ public Builder renderingMode(AculRenderingModeEnum renderingMode) { } @JsonSetter(value = "context_configuration", nulls = Nulls.SKIP) - public Builder contextConfiguration(Optional> contextConfiguration) { + public Builder contextConfiguration( + @Nullable OptionalNullable> contextConfiguration) { this.contextConfiguration = contextConfiguration; return this; } public Builder contextConfiguration(List contextConfiguration) { - this.contextConfiguration = Optional.ofNullable(contextConfiguration); + this.contextConfiguration = OptionalNullable.of(contextConfiguration); + return this; + } + + public Builder contextConfiguration(Optional> contextConfiguration) { + if (contextConfiguration.isPresent()) { + this.contextConfiguration = OptionalNullable.of(contextConfiguration.get()); + } else { + this.contextConfiguration = OptionalNullable.absent(); + } + return this; + } + + public Builder contextConfiguration( + com.auth0.client.mgmt.core.Nullable> contextConfiguration) { + if (contextConfiguration.isNull()) { + this.contextConfiguration = OptionalNullable.ofNull(); + } else if (contextConfiguration.isEmpty()) { + this.contextConfiguration = OptionalNullable.absent(); + } else { + this.contextConfiguration = OptionalNullable.of(contextConfiguration.get()); + } return this; } @@ -297,13 +339,33 @@ public Builder usePageTemplate(com.auth0.client.mgmt.core.Nullable useP *

An array of head tags

*/ @JsonSetter(value = "head_tags", nulls = Nulls.SKIP) - public Builder headTags(Optional> headTags) { + public Builder headTags(@Nullable OptionalNullable> headTags) { this.headTags = headTags; return this; } public Builder headTags(List headTags) { - this.headTags = Optional.ofNullable(headTags); + this.headTags = OptionalNullable.of(headTags); + return this; + } + + public Builder headTags(Optional> headTags) { + if (headTags.isPresent()) { + this.headTags = OptionalNullable.of(headTags.get()); + } else { + this.headTags = OptionalNullable.absent(); + } + return this; + } + + public Builder headTags(com.auth0.client.mgmt.core.Nullable> headTags) { + if (headTags.isNull()) { + this.headTags = OptionalNullable.ofNull(); + } else if (headTags.isEmpty()) { + this.headTags = OptionalNullable.absent(); + } else { + this.headTags = OptionalNullable.of(headTags.get()); + } return this; } diff --git a/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java index e11c6112d..31f5e1369 100644 --- a/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/tenants/types/UpdateTenantSettingsRequestContent.java @@ -88,7 +88,7 @@ public final class UpdateTenantSettingsRequestContent { private final OptionalNullable allowOrganizationNameInAuthenticationApi; - private final Optional> acrValuesSupported; + private final OptionalNullable> acrValuesSupported; private final OptionalNullable mtls; @@ -133,7 +133,7 @@ private UpdateTenantSettingsRequestContent( Optional oidcLogout, OptionalNullable customizeMfaInPostloginAction, OptionalNullable allowOrganizationNameInAuthenticationApi, - Optional> acrValuesSupported, + OptionalNullable> acrValuesSupported, OptionalNullable mtls, OptionalNullable pushedAuthorizationRequestsSupported, OptionalNullable authorizationResponseIssParameterSupported, @@ -402,8 +402,12 @@ public OptionalNullable getAllowOrganizationNameInAuthenticationApi() { /** * @return Supported ACR values */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("acr_values_supported") - public Optional> getAcrValuesSupported() { + public OptionalNullable> getAcrValuesSupported() { + if (acrValuesSupported == null) { + return OptionalNullable.absent(); + } return acrValuesSupported; } @@ -529,6 +533,12 @@ private OptionalNullable _getAllowOrganizationNameInAuthenticationApi() return allowOrganizationNameInAuthenticationApi; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("acr_values_supported") + private OptionalNullable> _getAcrValuesSupported() { + return acrValuesSupported; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("mtls") private OptionalNullable _getMtls() { @@ -705,7 +715,7 @@ public static final class Builder { private OptionalNullable allowOrganizationNameInAuthenticationApi = OptionalNullable.absent(); - private Optional> acrValuesSupported = Optional.empty(); + private OptionalNullable> acrValuesSupported = OptionalNullable.absent(); private OptionalNullable mtls = OptionalNullable.absent(); @@ -1297,13 +1307,33 @@ public Builder allowOrganizationNameInAuthenticationApi( *

Supported ACR values

*/ @JsonSetter(value = "acr_values_supported", nulls = Nulls.SKIP) - public Builder acrValuesSupported(Optional> acrValuesSupported) { + public Builder acrValuesSupported(@Nullable OptionalNullable> acrValuesSupported) { this.acrValuesSupported = acrValuesSupported; return this; } public Builder acrValuesSupported(List acrValuesSupported) { - this.acrValuesSupported = Optional.ofNullable(acrValuesSupported); + this.acrValuesSupported = OptionalNullable.of(acrValuesSupported); + return this; + } + + public Builder acrValuesSupported(Optional> acrValuesSupported) { + if (acrValuesSupported.isPresent()) { + this.acrValuesSupported = OptionalNullable.of(acrValuesSupported.get()); + } else { + this.acrValuesSupported = OptionalNullable.absent(); + } + return this; + } + + public Builder acrValuesSupported(com.auth0.client.mgmt.core.Nullable> acrValuesSupported) { + if (acrValuesSupported.isNull()) { + this.acrValuesSupported = OptionalNullable.ofNull(); + } else if (acrValuesSupported.isEmpty()) { + this.acrValuesSupported = OptionalNullable.absent(); + } else { + this.acrValuesSupported = OptionalNullable.of(acrValuesSupported.get()); + } return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionBinding.java b/src/main/java/com/auth0/client/mgmt/types/ActionBinding.java index 6f2dae6a5..7f3f765b5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionBinding.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionBinding.java @@ -23,7 +23,7 @@ public final class ActionBinding { private final Optional id; - private final Optional triggerId; + private final Optional triggerId; private final Optional displayName; @@ -37,7 +37,7 @@ public final class ActionBinding { private ActionBinding( Optional id, - Optional triggerId, + Optional triggerId, Optional displayName, Optional action, Optional createdAt, @@ -61,7 +61,7 @@ public Optional getId() { } @JsonProperty("trigger_id") - public Optional getTriggerId() { + public Optional getTriggerId() { return triggerId; } @@ -132,7 +132,7 @@ public static Builder builder() { public static final class Builder { private Optional id = Optional.empty(); - private Optional triggerId = Optional.empty(); + private Optional triggerId = Optional.empty(); private Optional displayName = Optional.empty(); @@ -172,12 +172,12 @@ public Builder id(String id) { } @JsonSetter(value = "trigger_id", nulls = Nulls.SKIP) - public Builder triggerId(Optional triggerId) { + public Builder triggerId(Optional triggerId) { this.triggerId = triggerId; return this; } - public Builder triggerId(String triggerId) { + public Builder triggerId(ActionTriggerTypeEnum triggerId) { this.triggerId = Optional.ofNullable(triggerId); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionTrigger.java b/src/main/java/com/auth0/client/mgmt/types/ActionTrigger.java index 91b8c3163..047116ccc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionTrigger.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionTrigger.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ActionTrigger.Builder.class) public final class ActionTrigger { - private final String id; + private final ActionTriggerTypeEnum id; private final Optional version; @@ -39,7 +39,7 @@ public final class ActionTrigger { private final Map additionalProperties; private ActionTrigger( - String id, + ActionTriggerTypeEnum id, Optional version, Optional status, Optional> runtimes, @@ -58,7 +58,7 @@ private ActionTrigger( } @JsonProperty("id") - public String getId() { + public ActionTriggerTypeEnum getId() { return id; } @@ -150,7 +150,7 @@ public static IdStage builder() { } public interface IdStage { - _FinalStage id(@NotNull String id); + _FinalStage id(@NotNull ActionTriggerTypeEnum id); Builder from(ActionTrigger other); } @@ -204,7 +204,7 @@ public interface _FinalStage { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder implements IdStage, _FinalStage { - private String id; + private ActionTriggerTypeEnum id; private Optional bindingPolicy = Optional.empty(); @@ -237,7 +237,7 @@ public Builder from(ActionTrigger other) { @java.lang.Override @JsonSetter("id") - public _FinalStage id(@NotNull String id) { + public _FinalStage id(@NotNull ActionTriggerTypeEnum id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java b/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java index d95b111ad..a6ec9ab28 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java @@ -19,20 +19,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ActionTriggerCompatibleTrigger.Builder.class) public final class ActionTriggerCompatibleTrigger { - private final String id; + private final ActionTriggerTypeEnum id; private final String version; private final Map additionalProperties; - private ActionTriggerCompatibleTrigger(String id, String version, Map additionalProperties) { + private ActionTriggerCompatibleTrigger( + ActionTriggerTypeEnum id, String version, Map additionalProperties) { this.id = id; this.version = version; this.additionalProperties = additionalProperties; } @JsonProperty("id") - public String getId() { + public ActionTriggerTypeEnum getId() { return id; } @@ -74,7 +75,7 @@ public static IdStage builder() { } public interface IdStage { - VersionStage id(@NotNull String id); + VersionStage id(@NotNull ActionTriggerTypeEnum id); Builder from(ActionTriggerCompatibleTrigger other); } @@ -96,7 +97,7 @@ public interface _FinalStage { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder implements IdStage, VersionStage, _FinalStage { - private String id; + private ActionTriggerTypeEnum id; private String version; @@ -114,7 +115,7 @@ public Builder from(ActionTriggerCompatibleTrigger other) { @java.lang.Override @JsonSetter("id") - public VersionStage id(@NotNull String id) { + public VersionStage id(@NotNull ActionTriggerTypeEnum id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionTriggerTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/ActionTriggerTypeEnum.java new file mode 100644 index 000000000..8dab9c3e3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ActionTriggerTypeEnum.java @@ -0,0 +1,217 @@ +/** + * 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 ActionTriggerTypeEnum { + public static final ActionTriggerTypeEnum SIGNUP_POST_IDENTIFIER = + new ActionTriggerTypeEnum(Value.SIGNUP_POST_IDENTIFIER, "signup-post-identifier"); + + public static final ActionTriggerTypeEnum PRE_USER_REGISTRATION = + new ActionTriggerTypeEnum(Value.PRE_USER_REGISTRATION, "pre-user-registration"); + + public static final ActionTriggerTypeEnum LOGIN_POST_IDENTIFIER = + new ActionTriggerTypeEnum(Value.LOGIN_POST_IDENTIFIER, "login-post-identifier"); + + public static final ActionTriggerTypeEnum CUSTOM_EMAIL_PROVIDER = + new ActionTriggerTypeEnum(Value.CUSTOM_EMAIL_PROVIDER, "custom-email-provider"); + + public static final ActionTriggerTypeEnum PASSWORD_RESET_POST_CHALLENGE = + new ActionTriggerTypeEnum(Value.PASSWORD_RESET_POST_CHALLENGE, "password-reset-post-challenge"); + + public static final ActionTriggerTypeEnum PASSWORD_HASH_MIGRATION = + new ActionTriggerTypeEnum(Value.PASSWORD_HASH_MIGRATION, "password-hash-migration"); + + public static final ActionTriggerTypeEnum CREDENTIALS_EXCHANGE = + new ActionTriggerTypeEnum(Value.CREDENTIALS_EXCHANGE, "credentials-exchange"); + + public static final ActionTriggerTypeEnum CUSTOM_TOKEN_EXCHANGE = + new ActionTriggerTypeEnum(Value.CUSTOM_TOKEN_EXCHANGE, "custom-token-exchange"); + + public static final ActionTriggerTypeEnum POST_USER_REGISTRATION = + new ActionTriggerTypeEnum(Value.POST_USER_REGISTRATION, "post-user-registration"); + + public static final ActionTriggerTypeEnum CUSTOM_PHONE_PROVIDER = + new ActionTriggerTypeEnum(Value.CUSTOM_PHONE_PROVIDER, "custom-phone-provider"); + + public static final ActionTriggerTypeEnum POST_LOGIN = new ActionTriggerTypeEnum(Value.POST_LOGIN, "post-login"); + + public static final ActionTriggerTypeEnum EVENT_STREAM = + new ActionTriggerTypeEnum(Value.EVENT_STREAM, "event-stream"); + + public static final ActionTriggerTypeEnum POST_CHANGE_PASSWORD = + new ActionTriggerTypeEnum(Value.POST_CHANGE_PASSWORD, "post-change-password"); + + public static final ActionTriggerTypeEnum SEND_PHONE_MESSAGE = + new ActionTriggerTypeEnum(Value.SEND_PHONE_MESSAGE, "send-phone-message"); + + private final Value value; + + private final String string; + + ActionTriggerTypeEnum(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 ActionTriggerTypeEnum + && this.string.equals(((ActionTriggerTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SIGNUP_POST_IDENTIFIER: + return visitor.visitSignupPostIdentifier(); + case PRE_USER_REGISTRATION: + return visitor.visitPreUserRegistration(); + case LOGIN_POST_IDENTIFIER: + return visitor.visitLoginPostIdentifier(); + case CUSTOM_EMAIL_PROVIDER: + return visitor.visitCustomEmailProvider(); + case PASSWORD_RESET_POST_CHALLENGE: + return visitor.visitPasswordResetPostChallenge(); + case PASSWORD_HASH_MIGRATION: + return visitor.visitPasswordHashMigration(); + case CREDENTIALS_EXCHANGE: + return visitor.visitCredentialsExchange(); + case CUSTOM_TOKEN_EXCHANGE: + return visitor.visitCustomTokenExchange(); + case POST_USER_REGISTRATION: + return visitor.visitPostUserRegistration(); + case CUSTOM_PHONE_PROVIDER: + return visitor.visitCustomPhoneProvider(); + case POST_LOGIN: + return visitor.visitPostLogin(); + case EVENT_STREAM: + return visitor.visitEventStream(); + case POST_CHANGE_PASSWORD: + return visitor.visitPostChangePassword(); + case SEND_PHONE_MESSAGE: + return visitor.visitSendPhoneMessage(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static ActionTriggerTypeEnum valueOf(String value) { + switch (value) { + case "signup-post-identifier": + return SIGNUP_POST_IDENTIFIER; + case "pre-user-registration": + return PRE_USER_REGISTRATION; + case "login-post-identifier": + return LOGIN_POST_IDENTIFIER; + case "custom-email-provider": + return CUSTOM_EMAIL_PROVIDER; + case "password-reset-post-challenge": + return PASSWORD_RESET_POST_CHALLENGE; + case "password-hash-migration": + return PASSWORD_HASH_MIGRATION; + case "credentials-exchange": + return CREDENTIALS_EXCHANGE; + case "custom-token-exchange": + return CUSTOM_TOKEN_EXCHANGE; + case "post-user-registration": + return POST_USER_REGISTRATION; + case "custom-phone-provider": + return CUSTOM_PHONE_PROVIDER; + case "post-login": + return POST_LOGIN; + case "event-stream": + return EVENT_STREAM; + case "post-change-password": + return POST_CHANGE_PASSWORD; + case "send-phone-message": + return SEND_PHONE_MESSAGE; + default: + return new ActionTriggerTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + POST_LOGIN, + + CREDENTIALS_EXCHANGE, + + PRE_USER_REGISTRATION, + + POST_USER_REGISTRATION, + + POST_CHANGE_PASSWORD, + + SEND_PHONE_MESSAGE, + + CUSTOM_PHONE_PROVIDER, + + CUSTOM_EMAIL_PROVIDER, + + PASSWORD_RESET_POST_CHALLENGE, + + CUSTOM_TOKEN_EXCHANGE, + + EVENT_STREAM, + + PASSWORD_HASH_MIGRATION, + + LOGIN_POST_IDENTIFIER, + + SIGNUP_POST_IDENTIFIER, + + UNKNOWN + } + + public interface Visitor { + T visitPostLogin(); + + T visitCredentialsExchange(); + + T visitPreUserRegistration(); + + T visitPostUserRegistration(); + + T visitPostChangePassword(); + + T visitSendPhoneMessage(); + + T visitCustomPhoneProvider(); + + T visitCustomEmailProvider(); + + T visitPasswordResetPostChallenge(); + + T visitCustomTokenExchange(); + + T visitEventStream(); + + T visitPasswordHashMigration(); + + T visitLoginPostIdentifier(); + + T visitSignupPostIdentifier(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java b/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java index 49255784e..fba469f3a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java @@ -31,13 +31,13 @@ public final class AculConfigsItem { private final Optional renderingMode; - private final Optional> contextConfiguration; + private final OptionalNullable> contextConfiguration; private final OptionalNullable defaultHeadTagsDisabled; private final OptionalNullable usePageTemplate; - private final Optional> headTags; + private final OptionalNullable> headTags; private final OptionalNullable filters; @@ -47,10 +47,10 @@ private AculConfigsItem( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, Optional renderingMode, - Optional> contextConfiguration, + OptionalNullable> contextConfiguration, OptionalNullable defaultHeadTagsDisabled, OptionalNullable usePageTemplate, - Optional> headTags, + OptionalNullable> headTags, OptionalNullable filters, Map additionalProperties) { this.prompt = prompt; @@ -82,8 +82,12 @@ public Optional getRenderingMode() { return renderingMode; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("context_configuration") - public Optional> getContextConfiguration() { + public OptionalNullable> getContextConfiguration() { + if (contextConfiguration == null) { + return OptionalNullable.absent(); + } return contextConfiguration; } @@ -114,8 +118,12 @@ public OptionalNullable getUsePageTemplate() { /** * @return An array of head tags */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("head_tags") - public Optional> getHeadTags() { + public OptionalNullable> getHeadTags() { + if (headTags == null) { + return OptionalNullable.absent(); + } return headTags; } @@ -128,6 +136,12 @@ public OptionalNullable getFilters() { return filters; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("context_configuration") + private OptionalNullable> _getContextConfiguration() { + return contextConfiguration; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("default_head_tags_disabled") private OptionalNullable _getDefaultHeadTagsDisabled() { @@ -140,6 +154,12 @@ private OptionalNullable _getUsePageTemplate() { return usePageTemplate; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("head_tags") + private OptionalNullable> _getHeadTags() { + return headTags; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("filters") private OptionalNullable _getFilters() { @@ -214,10 +234,16 @@ public interface _FinalStage { _FinalStage renderingMode(AculRenderingModeEnum renderingMode); - _FinalStage contextConfiguration(Optional> contextConfiguration); + _FinalStage contextConfiguration( + @Nullable OptionalNullable> contextConfiguration); _FinalStage contextConfiguration(List contextConfiguration); + _FinalStage contextConfiguration(Optional> contextConfiguration); + + _FinalStage contextConfiguration( + com.auth0.client.mgmt.core.Nullable> contextConfiguration); + /** *

Override Universal Login default head tags

*/ @@ -243,10 +269,14 @@ public interface _FinalStage { /** *

An array of head tags

*/ - _FinalStage headTags(Optional> headTags); + _FinalStage headTags(@Nullable OptionalNullable> headTags); _FinalStage headTags(List headTags); + _FinalStage headTags(Optional> headTags); + + _FinalStage headTags(com.auth0.client.mgmt.core.Nullable> headTags); + _FinalStage filters(@Nullable OptionalNullable filters); _FinalStage filters(AculFilters filters); @@ -264,13 +294,13 @@ public static final class Builder implements PromptStage, ScreenStage, _FinalSta private OptionalNullable filters = OptionalNullable.absent(); - private Optional> headTags = Optional.empty(); + private OptionalNullable> headTags = OptionalNullable.absent(); private OptionalNullable usePageTemplate = OptionalNullable.absent(); private OptionalNullable defaultHeadTagsDisabled = OptionalNullable.absent(); - private Optional> contextConfiguration = Optional.empty(); + private OptionalNullable> contextConfiguration = OptionalNullable.absent(); private Optional renderingMode = Optional.empty(); @@ -341,13 +371,43 @@ public _FinalStage filters(@Nullable OptionalNullable filters) { return this; } + /** + *

An array of head tags

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

An array of head tags

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

An array of head tags

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override public _FinalStage headTags(List headTags) { - this.headTags = Optional.ofNullable(headTags); + this.headTags = OptionalNullable.of(headTags); return this; } @@ -356,7 +416,7 @@ public _FinalStage headTags(List headTags) { */ @java.lang.Override @JsonSetter(value = "head_tags", nulls = Nulls.SKIP) - public _FinalStage headTags(Optional> headTags) { + public _FinalStage headTags(@Nullable OptionalNullable> headTags) { this.headTags = headTags; return this; } @@ -462,15 +522,39 @@ public _FinalStage defaultHeadTagsDisabled(@Nullable OptionalNullable d return this; } + @java.lang.Override + public _FinalStage contextConfiguration( + com.auth0.client.mgmt.core.Nullable> contextConfiguration) { + if (contextConfiguration.isNull()) { + this.contextConfiguration = OptionalNullable.ofNull(); + } else if (contextConfiguration.isEmpty()) { + this.contextConfiguration = OptionalNullable.absent(); + } else { + this.contextConfiguration = OptionalNullable.of(contextConfiguration.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage contextConfiguration(Optional> contextConfiguration) { + if (contextConfiguration.isPresent()) { + this.contextConfiguration = OptionalNullable.of(contextConfiguration.get()); + } else { + this.contextConfiguration = OptionalNullable.absent(); + } + return this; + } + @java.lang.Override public _FinalStage contextConfiguration(List contextConfiguration) { - this.contextConfiguration = Optional.ofNullable(contextConfiguration); + this.contextConfiguration = OptionalNullable.of(contextConfiguration); return this; } @java.lang.Override @JsonSetter(value = "context_configuration", nulls = Nulls.SKIP) - public _FinalStage contextConfiguration(Optional> contextConfiguration) { + public _FinalStage contextConfiguration( + @Nullable OptionalNullable> contextConfiguration) { this.contextConfiguration = contextConfiguration; return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/CimdMappedClientAuthenticationMethods.java b/src/main/java/com/auth0/client/mgmt/types/CimdMappedClientAuthenticationMethods.java new file mode 100644 index 000000000..b5204d400 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CimdMappedClientAuthenticationMethods.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.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = CimdMappedClientAuthenticationMethods.Builder.class) +public final class CimdMappedClientAuthenticationMethods { + private final Optional privateKeyJwt; + + private final Map additionalProperties; + + private CimdMappedClientAuthenticationMethods( + Optional privateKeyJwt, + Map additionalProperties) { + this.privateKeyJwt = privateKeyJwt; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("private_key_jwt") + public Optional getPrivateKeyJwt() { + return privateKeyJwt; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CimdMappedClientAuthenticationMethods + && equalTo((CimdMappedClientAuthenticationMethods) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CimdMappedClientAuthenticationMethods other) { + return privateKeyJwt.equals(other.privateKeyJwt); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.privateKeyJwt); + } + + @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 privateKeyJwt = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(CimdMappedClientAuthenticationMethods other) { + privateKeyJwt(other.getPrivateKeyJwt()); + return this; + } + + @JsonSetter(value = "private_key_jwt", nulls = Nulls.SKIP) + public Builder privateKeyJwt(Optional privateKeyJwt) { + this.privateKeyJwt = privateKeyJwt; + return this; + } + + public Builder privateKeyJwt(CimdMappedClientAuthenticationMethodsPrivateKeyJwt privateKeyJwt) { + this.privateKeyJwt = Optional.ofNullable(privateKeyJwt); + return this; + } + + public CimdMappedClientAuthenticationMethods build() { + return new CimdMappedClientAuthenticationMethods(privateKeyJwt, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/CimdMappedClientAuthenticationMethodsPrivateKeyJwt.java b/src/main/java/com/auth0/client/mgmt/types/CimdMappedClientAuthenticationMethodsPrivateKeyJwt.java new file mode 100644 index 000000000..888d46249 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CimdMappedClientAuthenticationMethodsPrivateKeyJwt.java @@ -0,0 +1,124 @@ +/** + * 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 = CimdMappedClientAuthenticationMethodsPrivateKeyJwt.Builder.class) +public final class CimdMappedClientAuthenticationMethodsPrivateKeyJwt { + private final List credentials; + + private final Map additionalProperties; + + private CimdMappedClientAuthenticationMethodsPrivateKeyJwt( + List credentials, Map additionalProperties) { + this.credentials = credentials; + this.additionalProperties = additionalProperties; + } + + /** + * @return Credentials derived from the JWKS document + */ + @JsonProperty("credentials") + public List getCredentials() { + return credentials; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CimdMappedClientAuthenticationMethodsPrivateKeyJwt + && equalTo((CimdMappedClientAuthenticationMethodsPrivateKeyJwt) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CimdMappedClientAuthenticationMethodsPrivateKeyJwt 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(CimdMappedClientAuthenticationMethodsPrivateKeyJwt other) { + credentials(other.getCredentials()); + return this; + } + + /** + *

Credentials derived from the JWKS document

+ */ + @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(CimdMappedPrivateKeyJwtCredential credentials) { + this.credentials.add(credentials); + return this; + } + + public Builder addAllCredentials(List credentials) { + if (credentials != null) { + this.credentials.addAll(credentials); + } + return this; + } + + public CimdMappedClientAuthenticationMethodsPrivateKeyJwt build() { + return new CimdMappedClientAuthenticationMethodsPrivateKeyJwt(credentials, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/CimdMappedClientFields.java b/src/main/java/com/auth0/client/mgmt/types/CimdMappedClientFields.java new file mode 100644 index 000000000..85603c453 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CimdMappedClientFields.java @@ -0,0 +1,400 @@ +/** + * 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; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = CimdMappedClientFields.Builder.class) +public final class CimdMappedClientFields { + private final Optional externalClientId; + + private final Optional name; + + private final Optional appType; + + private final Optional> callbacks; + + private final Optional logoUri; + + private final Optional description; + + private final Optional> grantTypes; + + private final Optional tokenEndpointAuthMethod; + + private final Optional jwksUri; + + private final Optional clientAuthenticationMethods; + + private final Map additionalProperties; + + private CimdMappedClientFields( + Optional externalClientId, + Optional name, + Optional appType, + Optional> callbacks, + Optional logoUri, + Optional description, + Optional> grantTypes, + Optional tokenEndpointAuthMethod, + Optional jwksUri, + Optional clientAuthenticationMethods, + Map additionalProperties) { + this.externalClientId = externalClientId; + this.name = name; + this.appType = appType; + this.callbacks = callbacks; + this.logoUri = logoUri; + this.description = description; + this.grantTypes = grantTypes; + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + this.jwksUri = jwksUri; + this.clientAuthenticationMethods = clientAuthenticationMethods; + this.additionalProperties = additionalProperties; + } + + /** + * @return The URL of the Client ID Metadata Document + */ + @JsonProperty("external_client_id") + public Optional getExternalClientId() { + return externalClientId; + } + + /** + * @return Client name + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Application type (e.g., web, native) + */ + @JsonProperty("app_type") + public Optional getAppType() { + return appType; + } + + /** + * @return Callback URLs + */ + @JsonProperty("callbacks") + public Optional> getCallbacks() { + return callbacks; + } + + /** + * @return Logo URI + */ + @JsonProperty("logo_uri") + public Optional getLogoUri() { + return logoUri; + } + + /** + * @return Human-readable brief description of this client presentable to the end-user + */ + @JsonProperty("description") + public Optional getDescription() { + return description; + } + + /** + * @return List of grant types + */ + @JsonProperty("grant_types") + public Optional> getGrantTypes() { + return grantTypes; + } + + /** + * @return Token endpoint authentication method + */ + @JsonProperty("token_endpoint_auth_method") + public Optional getTokenEndpointAuthMethod() { + return tokenEndpointAuthMethod; + } + + /** + * @return URL for the JSON Web Key Set containing the public keys for private_key_jwt authentication + */ + @JsonProperty("jwks_uri") + public Optional getJwksUri() { + return jwksUri; + } + + @JsonProperty("client_authentication_methods") + public Optional getClientAuthenticationMethods() { + return clientAuthenticationMethods; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CimdMappedClientFields && equalTo((CimdMappedClientFields) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CimdMappedClientFields other) { + return externalClientId.equals(other.externalClientId) + && name.equals(other.name) + && appType.equals(other.appType) + && callbacks.equals(other.callbacks) + && logoUri.equals(other.logoUri) + && description.equals(other.description) + && grantTypes.equals(other.grantTypes) + && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) + && jwksUri.equals(other.jwksUri) + && clientAuthenticationMethods.equals(other.clientAuthenticationMethods); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.externalClientId, + this.name, + this.appType, + this.callbacks, + this.logoUri, + this.description, + this.grantTypes, + this.tokenEndpointAuthMethod, + this.jwksUri, + this.clientAuthenticationMethods); + } + + @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 externalClientId = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional appType = Optional.empty(); + + private Optional> callbacks = Optional.empty(); + + private Optional logoUri = Optional.empty(); + + private Optional description = Optional.empty(); + + private Optional> grantTypes = Optional.empty(); + + private Optional tokenEndpointAuthMethod = Optional.empty(); + + private Optional jwksUri = Optional.empty(); + + private Optional clientAuthenticationMethods = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(CimdMappedClientFields other) { + externalClientId(other.getExternalClientId()); + name(other.getName()); + appType(other.getAppType()); + callbacks(other.getCallbacks()); + logoUri(other.getLogoUri()); + description(other.getDescription()); + grantTypes(other.getGrantTypes()); + tokenEndpointAuthMethod(other.getTokenEndpointAuthMethod()); + jwksUri(other.getJwksUri()); + clientAuthenticationMethods(other.getClientAuthenticationMethods()); + return this; + } + + /** + *

The URL of the Client ID Metadata Document

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

Client 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; + } + + /** + *

Application type (e.g., web, native)

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

Callback URLs

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

Logo URI

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

Human-readable brief description of this client presentable to the end-user

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

List of grant types

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

Token endpoint authentication method

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

URL for the JSON Web Key Set containing the public keys for private_key_jwt authentication

+ */ + @JsonSetter(value = "jwks_uri", nulls = Nulls.SKIP) + public Builder jwksUri(Optional jwksUri) { + this.jwksUri = jwksUri; + return this; + } + + public Builder jwksUri(String jwksUri) { + this.jwksUri = Optional.ofNullable(jwksUri); + return this; + } + + @JsonSetter(value = "client_authentication_methods", nulls = Nulls.SKIP) + public Builder clientAuthenticationMethods( + Optional clientAuthenticationMethods) { + this.clientAuthenticationMethods = clientAuthenticationMethods; + return this; + } + + public Builder clientAuthenticationMethods(CimdMappedClientAuthenticationMethods clientAuthenticationMethods) { + this.clientAuthenticationMethods = Optional.ofNullable(clientAuthenticationMethods); + return this; + } + + public CimdMappedClientFields build() { + return new CimdMappedClientFields( + externalClientId, + name, + appType, + callbacks, + logoUri, + description, + grantTypes, + tokenEndpointAuthMethod, + jwksUri, + clientAuthenticationMethods, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/CimdMappedPrivateKeyJwtCredential.java b/src/main/java/com/auth0/client/mgmt/types/CimdMappedPrivateKeyJwtCredential.java new file mode 100644 index 000000000..073b89f90 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CimdMappedPrivateKeyJwtCredential.java @@ -0,0 +1,196 @@ +/** + * 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.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = CimdMappedPrivateKeyJwtCredential.Builder.class) +public final class CimdMappedPrivateKeyJwtCredential { + private final String credentialType; + + private final String kid; + + private final String alg; + + private final Map additionalProperties; + + private CimdMappedPrivateKeyJwtCredential( + String credentialType, String kid, String alg, Map additionalProperties) { + this.credentialType = credentialType; + this.kid = kid; + this.alg = alg; + this.additionalProperties = additionalProperties; + } + + /** + * @return Type of credential (e.g., public_key) + */ + @JsonProperty("credential_type") + public String getCredentialType() { + return credentialType; + } + + /** + * @return Key identifier from JWKS or calculated thumbprint + */ + @JsonProperty("kid") + public String getKid() { + return kid; + } + + /** + * @return Algorithm (e.g., RS256, RS384, PS256) + */ + @JsonProperty("alg") + public String getAlg() { + return alg; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CimdMappedPrivateKeyJwtCredential && equalTo((CimdMappedPrivateKeyJwtCredential) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CimdMappedPrivateKeyJwtCredential other) { + return credentialType.equals(other.credentialType) && kid.equals(other.kid) && alg.equals(other.alg); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.credentialType, this.kid, this.alg); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static CredentialTypeStage builder() { + return new Builder(); + } + + public interface CredentialTypeStage { + /** + *

Type of credential (e.g., public_key)

+ */ + KidStage credentialType(@NotNull String credentialType); + + Builder from(CimdMappedPrivateKeyJwtCredential other); + } + + public interface KidStage { + /** + *

Key identifier from JWKS or calculated thumbprint

+ */ + AlgStage kid(@NotNull String kid); + } + + public interface AlgStage { + /** + *

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

+ */ + _FinalStage alg(@NotNull String alg); + } + + public interface _FinalStage { + CimdMappedPrivateKeyJwtCredential build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements CredentialTypeStage, KidStage, AlgStage, _FinalStage { + private String credentialType; + + private String kid; + + private String alg; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(CimdMappedPrivateKeyJwtCredential other) { + credentialType(other.getCredentialType()); + kid(other.getKid()); + alg(other.getAlg()); + return this; + } + + /** + *

Type of credential (e.g., public_key)

+ *

Type of credential (e.g., public_key)

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

Key identifier from JWKS or calculated thumbprint

+ *

Key identifier from JWKS or calculated thumbprint

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

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

+ *

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

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("alg") + public _FinalStage alg(@NotNull String alg) { + this.alg = Objects.requireNonNull(alg, "alg must not be null"); + return this; + } + + @java.lang.Override + public CimdMappedPrivateKeyJwtCredential build() { + return new CimdMappedPrivateKeyJwtCredential(credentialType, kid, alg, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/CimdValidationResult.java b/src/main/java/com/auth0/client/mgmt/types/CimdValidationResult.java new file mode 100644 index 000000000..c3bfaf3fc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/CimdValidationResult.java @@ -0,0 +1,248 @@ +/** + * 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 = CimdValidationResult.Builder.class) +public final class CimdValidationResult { + private final boolean valid; + + private final List violations; + + private final List warnings; + + private final Map additionalProperties; + + private CimdValidationResult( + boolean valid, List violations, List warnings, Map additionalProperties) { + this.valid = valid; + this.violations = violations; + this.warnings = warnings; + this.additionalProperties = additionalProperties; + } + + /** + * @return Whether the metadata document passed validation + */ + @JsonProperty("valid") + public boolean getValid() { + return valid; + } + + /** + * @return Array of validation violation messages (if any) + */ + @JsonProperty("violations") + public List getViolations() { + return violations; + } + + /** + * @return Array of warning messages (if any) + */ + @JsonProperty("warnings") + public List getWarnings() { + return warnings; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CimdValidationResult && equalTo((CimdValidationResult) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(CimdValidationResult other) { + return valid == other.valid && violations.equals(other.violations) && warnings.equals(other.warnings); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.valid, this.violations, this.warnings); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ValidStage builder() { + return new Builder(); + } + + public interface ValidStage { + /** + *

Whether the metadata document passed validation

+ */ + _FinalStage valid(boolean valid); + + Builder from(CimdValidationResult other); + } + + public interface _FinalStage { + CimdValidationResult build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Array of validation violation messages (if any)

+ */ + _FinalStage violations(List violations); + + _FinalStage addViolations(String violations); + + _FinalStage addAllViolations(List violations); + + /** + *

Array of warning messages (if any)

+ */ + _FinalStage warnings(List warnings); + + _FinalStage addWarnings(String warnings); + + _FinalStage addAllWarnings(List warnings); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ValidStage, _FinalStage { + private boolean valid; + + private List warnings = new ArrayList<>(); + + private List violations = new ArrayList<>(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(CimdValidationResult other) { + valid(other.getValid()); + violations(other.getViolations()); + warnings(other.getWarnings()); + return this; + } + + /** + *

Whether the metadata document passed validation

+ *

Whether the metadata document passed validation

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("valid") + public _FinalStage valid(boolean valid) { + this.valid = valid; + return this; + } + + /** + *

Array of warning messages (if any)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addAllWarnings(List warnings) { + if (warnings != null) { + this.warnings.addAll(warnings); + } + return this; + } + + /** + *

Array of warning messages (if any)

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

Array of warning messages (if any)

+ */ + @java.lang.Override + @JsonSetter(value = "warnings", nulls = Nulls.SKIP) + public _FinalStage warnings(List warnings) { + this.warnings.clear(); + if (warnings != null) { + this.warnings.addAll(warnings); + } + return this; + } + + /** + *

Array of validation violation messages (if any)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addAllViolations(List violations) { + if (violations != null) { + this.violations.addAll(violations); + } + return this; + } + + /** + *

Array of validation violation messages (if any)

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

Array of validation violation messages (if any)

+ */ + @java.lang.Override + @JsonSetter(value = "violations", nulls = Nulls.SKIP) + public _FinalStage violations(List violations) { + this.violations.clear(); + if (violations != null) { + this.violations.addAll(violations); + } + return this; + } + + @java.lang.Override + public CimdValidationResult build() { + return new CimdValidationResult(valid, violations, warnings, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/Client.java b/src/main/java/com/auth0/client/mgmt/types/Client.java index 6ef265060..4fc0d1218 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Client.java +++ b/src/main/java/com/auth0/client/mgmt/types/Client.java @@ -64,7 +64,7 @@ public final class Client { private final Optional jwtConfiguration; - private final Optional> signingKeys; + private final OptionalNullable> signingKeys; private final OptionalNullable encryptionKey; @@ -130,6 +130,14 @@ public final class Client { private final Optional> asyncApprovalNotificationChannels; + private final Optional externalMetadataType; + + private final Optional externalMetadataCreatedBy; + + private final Optional externalClientId; + + private final Optional jwksUri; + private final Map additionalProperties; private Client( @@ -153,7 +161,7 @@ private Client( Optional oidcLogout, Optional> grantTypes, Optional jwtConfiguration, - Optional> signingKeys, + OptionalNullable> signingKeys, OptionalNullable encryptionKey, Optional sso, Optional ssoDisabled, @@ -186,6 +194,10 @@ private Client( Optional expressConfiguration, Optional resourceServerIdentifier, Optional> asyncApprovalNotificationChannels, + Optional externalMetadataType, + Optional externalMetadataCreatedBy, + Optional externalClientId, + Optional jwksUri, Map additionalProperties) { this.clientId = clientId; this.tenant = tenant; @@ -240,6 +252,10 @@ private Client( this.expressConfiguration = expressConfiguration; this.resourceServerIdentifier = resourceServerIdentifier; this.asyncApprovalNotificationChannels = asyncApprovalNotificationChannels; + this.externalMetadataType = externalMetadataType; + this.externalMetadataCreatedBy = externalMetadataCreatedBy; + this.externalClientId = externalClientId; + this.jwksUri = jwksUri; this.additionalProperties = additionalProperties; } @@ -395,8 +411,12 @@ public Optional getJwtConfiguration() { return jwtConfiguration; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("signing_keys") - public Optional> getSigningKeys() { + public OptionalNullable> getSigningKeys() { + if (signingKeys == null) { + return OptionalNullable.absent(); + } return signingKeys; } @@ -634,12 +654,44 @@ public Optional> getAsyncApprovalNo return asyncApprovalNotificationChannels; } + @JsonProperty("external_metadata_type") + public Optional getExternalMetadataType() { + return externalMetadataType; + } + + @JsonProperty("external_metadata_created_by") + public Optional getExternalMetadataCreatedBy() { + return externalMetadataCreatedBy; + } + + /** + * @return An alternate client identifier to be used during authorization flows. Only supports CIMD-based client identifiers. + */ + @JsonProperty("external_client_id") + public Optional getExternalClientId() { + return externalClientId; + } + + /** + * @return URL for the JSON Web Key Set (JWKS) containing the public keys used for private_key_jwt authentication. Only present for CIMD clients using private_key_jwt authentication. + */ + @JsonProperty("jwks_uri") + public Optional getJwksUri() { + return jwksUri; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_transfer") private OptionalNullable _getSessionTransfer() { return sessionTransfer; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("signing_keys") + private OptionalNullable> _getSigningKeys() { + return signingKeys; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("encryption_key") private OptionalNullable _getEncryptionKey() { @@ -741,7 +793,11 @@ private boolean equalTo(Client other) { && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) && resourceServerIdentifier.equals(other.resourceServerIdentifier) - && asyncApprovalNotificationChannels.equals(other.asyncApprovalNotificationChannels); + && asyncApprovalNotificationChannels.equals(other.asyncApprovalNotificationChannels) + && externalMetadataType.equals(other.externalMetadataType) + && externalMetadataCreatedBy.equals(other.externalMetadataCreatedBy) + && externalClientId.equals(other.externalClientId) + && jwksUri.equals(other.jwksUri); } @java.lang.Override @@ -799,7 +855,11 @@ public int hashCode() { this.tokenQuota, this.expressConfiguration, this.resourceServerIdentifier, - this.asyncApprovalNotificationChannels); + this.asyncApprovalNotificationChannels, + this.externalMetadataType, + this.externalMetadataCreatedBy, + this.externalClientId, + this.jwksUri); } @java.lang.Override @@ -853,7 +913,7 @@ public static final class Builder { private Optional jwtConfiguration = Optional.empty(); - private Optional> signingKeys = Optional.empty(); + private OptionalNullable> signingKeys = OptionalNullable.absent(); private OptionalNullable encryptionKey = OptionalNullable.absent(); @@ -920,6 +980,14 @@ public static final class Builder { private Optional> asyncApprovalNotificationChannels = Optional.empty(); + private Optional externalMetadataType = Optional.empty(); + + private Optional externalMetadataCreatedBy = Optional.empty(); + + private Optional externalClientId = Optional.empty(); + + private Optional jwksUri = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -979,6 +1047,10 @@ public Builder from(Client other) { expressConfiguration(other.getExpressConfiguration()); resourceServerIdentifier(other.getResourceServerIdentifier()); asyncApprovalNotificationChannels(other.getAsyncApprovalNotificationChannels()); + externalMetadataType(other.getExternalMetadataType()); + externalMetadataCreatedBy(other.getExternalMetadataCreatedBy()); + externalClientId(other.getExternalClientId()); + jwksUri(other.getJwksUri()); return this; } @@ -1272,13 +1344,33 @@ public Builder jwtConfiguration(ClientJwtConfiguration jwtConfiguration) { } @JsonSetter(value = "signing_keys", nulls = Nulls.SKIP) - public Builder signingKeys(Optional> signingKeys) { + public Builder signingKeys(@Nullable OptionalNullable> signingKeys) { this.signingKeys = signingKeys; return this; } public Builder signingKeys(List signingKeys) { - this.signingKeys = Optional.ofNullable(signingKeys); + this.signingKeys = OptionalNullable.of(signingKeys); + return this; + } + + public Builder signingKeys(Optional> signingKeys) { + if (signingKeys.isPresent()) { + this.signingKeys = OptionalNullable.of(signingKeys.get()); + } else { + this.signingKeys = OptionalNullable.absent(); + } + return this; + } + + public Builder signingKeys(com.auth0.client.mgmt.core.Nullable> signingKeys) { + if (signingKeys.isNull()) { + this.signingKeys = OptionalNullable.ofNull(); + } else if (signingKeys.isEmpty()) { + this.signingKeys = OptionalNullable.absent(); + } else { + this.signingKeys = OptionalNullable.of(signingKeys.get()); + } return this; } @@ -1815,6 +1907,57 @@ public Builder asyncApprovalNotificationChannels( return this; } + @JsonSetter(value = "external_metadata_type", nulls = Nulls.SKIP) + public Builder externalMetadataType(Optional externalMetadataType) { + this.externalMetadataType = externalMetadataType; + return this; + } + + public Builder externalMetadataType(ClientExternalMetadataTypeEnum externalMetadataType) { + this.externalMetadataType = Optional.ofNullable(externalMetadataType); + return this; + } + + @JsonSetter(value = "external_metadata_created_by", nulls = Nulls.SKIP) + public Builder externalMetadataCreatedBy( + Optional externalMetadataCreatedBy) { + this.externalMetadataCreatedBy = externalMetadataCreatedBy; + return this; + } + + public Builder externalMetadataCreatedBy(ClientExternalMetadataCreatedByEnum externalMetadataCreatedBy) { + this.externalMetadataCreatedBy = Optional.ofNullable(externalMetadataCreatedBy); + return this; + } + + /** + *

An alternate client identifier to be used during authorization flows. Only supports CIMD-based client identifiers.

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

URL for the JSON Web Key Set (JWKS) containing the public keys used for private_key_jwt authentication. Only present for CIMD clients using private_key_jwt authentication.

+ */ + @JsonSetter(value = "jwks_uri", nulls = Nulls.SKIP) + public Builder jwksUri(Optional jwksUri) { + this.jwksUri = jwksUri; + return this; + } + + public Builder jwksUri(String jwksUri) { + this.jwksUri = Optional.ofNullable(jwksUri); + return this; + } + public Client build() { return new Client( clientId, @@ -1870,6 +2013,10 @@ public Client build() { expressConfiguration, resourceServerIdentifier, asyncApprovalNotificationChannels, + externalMetadataType, + externalMetadataCreatedBy, + externalClientId, + jwksUri, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicardStrategy.java b/src/main/java/com/auth0/client/mgmt/types/ClientExternalMetadataCreatedByEnum.java similarity index 51% rename from src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicardStrategy.java rename to src/main/java/com/auth0/client/mgmt/types/ClientExternalMetadataCreatedByEnum.java index 089da133b..b6287d643 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicardStrategy.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientExternalMetadataCreatedByEnum.java @@ -6,15 +6,18 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -public final class ConnectionResponseContentMiicardStrategy { - public static final ConnectionResponseContentMiicardStrategy MIICARD = - new ConnectionResponseContentMiicardStrategy(Value.MIICARD, "miicard"); +public final class ClientExternalMetadataCreatedByEnum { + public static final ClientExternalMetadataCreatedByEnum ADMIN = + new ClientExternalMetadataCreatedByEnum(Value.ADMIN, "admin"); + + public static final ClientExternalMetadataCreatedByEnum CLIENT = + new ClientExternalMetadataCreatedByEnum(Value.CLIENT, "client"); private final Value value; private final String string; - ConnectionResponseContentMiicardStrategy(Value value, String string) { + ClientExternalMetadataCreatedByEnum(Value value, String string) { this.value = value; this.string = string; } @@ -32,8 +35,8 @@ public String toString() { @java.lang.Override public boolean equals(Object other) { return (this == other) - || (other instanceof ConnectionResponseContentMiicardStrategy - && this.string.equals(((ConnectionResponseContentMiicardStrategy) other).string)); + || (other instanceof ClientExternalMetadataCreatedByEnum + && this.string.equals(((ClientExternalMetadataCreatedByEnum) other).string)); } @java.lang.Override @@ -43,8 +46,10 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { - case MIICARD: - return visitor.visitMiicard(); + case ADMIN: + return visitor.visitAdmin(); + case CLIENT: + return visitor.visitClient(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -52,23 +57,29 @@ public T visit(Visitor visitor) { } @JsonCreator(mode = JsonCreator.Mode.DELEGATING) - public static ConnectionResponseContentMiicardStrategy valueOf(String value) { + public static ClientExternalMetadataCreatedByEnum valueOf(String value) { switch (value) { - case "miicard": - return MIICARD; + case "admin": + return ADMIN; + case "client": + return CLIENT; default: - return new ConnectionResponseContentMiicardStrategy(Value.UNKNOWN, value); + return new ClientExternalMetadataCreatedByEnum(Value.UNKNOWN, value); } } public enum Value { - MIICARD, + ADMIN, + + CLIENT, UNKNOWN } public interface Visitor { - T visitMiicard(); + T visitAdmin(); + + T visitClient(); T visitUnknown(String unknownType); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAolStrategy.java b/src/main/java/com/auth0/client/mgmt/types/ClientExternalMetadataTypeEnum.java similarity index 60% rename from src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAolStrategy.java rename to src/main/java/com/auth0/client/mgmt/types/ClientExternalMetadataTypeEnum.java index 8e59dd6e5..927729b94 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAolStrategy.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientExternalMetadataTypeEnum.java @@ -6,15 +6,14 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -public final class ConnectionResponseContentAolStrategy { - public static final ConnectionResponseContentAolStrategy AOL = - new ConnectionResponseContentAolStrategy(Value.AOL, "aol"); +public final class ClientExternalMetadataTypeEnum { + public static final ClientExternalMetadataTypeEnum CIMD = new ClientExternalMetadataTypeEnum(Value.CIMD, "cimd"); private final Value value; private final String string; - ConnectionResponseContentAolStrategy(Value value, String string) { + ClientExternalMetadataTypeEnum(Value value, String string) { this.value = value; this.string = string; } @@ -32,8 +31,8 @@ public String toString() { @java.lang.Override public boolean equals(Object other) { return (this == other) - || (other instanceof ConnectionResponseContentAolStrategy - && this.string.equals(((ConnectionResponseContentAolStrategy) other).string)); + || (other instanceof ClientExternalMetadataTypeEnum + && this.string.equals(((ClientExternalMetadataTypeEnum) other).string)); } @java.lang.Override @@ -43,8 +42,8 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { - case AOL: - return visitor.visitAol(); + case CIMD: + return visitor.visitCimd(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -52,23 +51,23 @@ public T visit(Visitor visitor) { } @JsonCreator(mode = JsonCreator.Mode.DELEGATING) - public static ConnectionResponseContentAolStrategy valueOf(String value) { + public static ClientExternalMetadataTypeEnum valueOf(String value) { switch (value) { - case "aol": - return AOL; + case "cimd": + return CIMD; default: - return new ConnectionResponseContentAolStrategy(Value.UNKNOWN, value); + return new ClientExternalMetadataTypeEnum(Value.UNKNOWN, value); } } public enum Value { - AOL, + CIMD, UNKNOWN } public interface Visitor { - T visitAol(); + T visitCimd(); T visitUnknown(String unknownType); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenConfiguration.java index b89d96d75..6fcf2c690 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenConfiguration.java @@ -3,7 +3,9 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -18,6 +20,7 @@ import java.util.Objects; import java.util.Optional; import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ClientRefreshTokenConfiguration.Builder.class) @@ -36,7 +39,7 @@ public final class ClientRefreshTokenConfiguration { private final Optional infiniteIdleTokenLifetime; - private final Optional> policies; + private final OptionalNullable> policies; private final Map additionalProperties; @@ -48,7 +51,7 @@ private ClientRefreshTokenConfiguration( Optional infiniteTokenLifetime, Optional idleTokenLifetime, Optional infiniteIdleTokenLifetime, - Optional> policies, + OptionalNullable> policies, Map additionalProperties) { this.rotationType = rotationType; this.expirationType = expirationType; @@ -114,8 +117,18 @@ public Optional getInfiniteIdleTokenLifetime() { /** * @return A collection of policies governing multi-resource refresh token exchange (MRRT), defining how refresh tokens can be used across different resource servers */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("policies") - public Optional> getPolicies() { + public OptionalNullable> getPolicies() { + if (policies == null) { + return OptionalNullable.absent(); + } + return policies; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("policies") + private OptionalNullable> _getPolicies() { return policies; } @@ -218,9 +231,13 @@ public interface _FinalStage { /** *

A collection of policies governing multi-resource refresh token exchange (MRRT), defining how refresh tokens can be used across different resource servers

*/ - _FinalStage policies(Optional> policies); + _FinalStage policies(@Nullable OptionalNullable> policies); _FinalStage policies(List policies); + + _FinalStage policies(Optional> policies); + + _FinalStage policies(com.auth0.client.mgmt.core.Nullable> policies); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -229,7 +246,7 @@ public static final class Builder implements RotationTypeStage, ExpirationTypeSt private RefreshTokenExpirationTypeEnum expirationType; - private Optional> policies = Optional.empty(); + private OptionalNullable> policies = OptionalNullable.absent(); private Optional infiniteIdleTokenLifetime = Optional.empty(); @@ -273,13 +290,43 @@ public _FinalStage expirationType(@NotNull RefreshTokenExpirationTypeEnum expira return this; } + /** + *

A collection of policies governing multi-resource refresh token exchange (MRRT), defining how refresh tokens can be used across different resource servers

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

A collection of policies governing multi-resource refresh token exchange (MRRT), defining how refresh tokens can be used across different resource servers

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

A collection of policies governing multi-resource refresh token exchange (MRRT), defining how refresh tokens can be used across different resource servers

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override public _FinalStage policies(List policies) { - this.policies = Optional.ofNullable(policies); + this.policies = OptionalNullable.of(policies); return this; } @@ -288,7 +335,7 @@ public _FinalStage policies(List policies) { */ @java.lang.Override @JsonSetter(value = "policies", nulls = Nulls.SKIP) - public _FinalStage policies(Optional> policies) { + public _FinalStage policies(@Nullable OptionalNullable> policies) { this.policies = policies; return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferConfiguration.java index 5d09f7877..9132aa608 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferConfiguration.java @@ -3,7 +3,9 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -17,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.Nullable; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ClientSessionTransferConfiguration.Builder.class) @@ -25,7 +28,8 @@ public final class ClientSessionTransferConfiguration { private final Optional enforceCascadeRevocation; - private final Optional> allowedAuthenticationMethods; + private final OptionalNullable> + allowedAuthenticationMethods; private final Optional enforceDeviceBinding; @@ -38,7 +42,7 @@ public final class ClientSessionTransferConfiguration { private ClientSessionTransferConfiguration( Optional canCreateSessionTransferToken, Optional enforceCascadeRevocation, - Optional> allowedAuthenticationMethods, + OptionalNullable> allowedAuthenticationMethods, Optional enforceDeviceBinding, Optional allowRefreshToken, Optional enforceOnlineRefreshTokens, @@ -71,8 +75,13 @@ 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. Default value is an empty array []. */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("allowed_authentication_methods") - public Optional> getAllowedAuthenticationMethods() { + public OptionalNullable> + getAllowedAuthenticationMethods() { + if (allowedAuthenticationMethods == null) { + return OptionalNullable.absent(); + } return allowedAuthenticationMethods; } @@ -97,6 +106,13 @@ public Optional getEnforceOnlineRefreshTokens() { return enforceOnlineRefreshTokens; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("allowed_authentication_methods") + private OptionalNullable> + _getAllowedAuthenticationMethods() { + return allowedAuthenticationMethods; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -144,8 +160,8 @@ public static final class Builder { private Optional enforceCascadeRevocation = Optional.empty(); - private Optional> allowedAuthenticationMethods = - Optional.empty(); + private OptionalNullable> + allowedAuthenticationMethods = OptionalNullable.absent(); private Optional enforceDeviceBinding = Optional.empty(); @@ -201,14 +217,39 @@ public Builder enforceCascadeRevocation(Boolean enforceCascadeRevocation) { */ @JsonSetter(value = "allowed_authentication_methods", nulls = Nulls.SKIP) public Builder allowedAuthenticationMethods( - Optional> allowedAuthenticationMethods) { + @Nullable + OptionalNullable> + allowedAuthenticationMethods) { this.allowedAuthenticationMethods = allowedAuthenticationMethods; return this; } public Builder allowedAuthenticationMethods( List allowedAuthenticationMethods) { - this.allowedAuthenticationMethods = Optional.ofNullable(allowedAuthenticationMethods); + this.allowedAuthenticationMethods = OptionalNullable.of(allowedAuthenticationMethods); + return this; + } + + public Builder allowedAuthenticationMethods( + Optional> allowedAuthenticationMethods) { + if (allowedAuthenticationMethods.isPresent()) { + this.allowedAuthenticationMethods = OptionalNullable.of(allowedAuthenticationMethods.get()); + } else { + this.allowedAuthenticationMethods = OptionalNullable.absent(); + } + return this; + } + + public Builder allowedAuthenticationMethods( + com.auth0.client.mgmt.core.Nullable> + allowedAuthenticationMethods) { + if (allowedAuthenticationMethods.isNull()) { + this.allowedAuthenticationMethods = OptionalNullable.ofNull(); + } else if (allowedAuthenticationMethods.isEmpty()) { + this.allowedAuthenticationMethods = OptionalNullable.absent(); + } else { + this.allowedAuthenticationMethods = OptionalNullable.of(allowedAuthenticationMethods.get()); + } return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionIdentityProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionIdentityProviderEnum.java index cefd9fdc0..27f6e9b25 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionIdentityProviderEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionIdentityProviderEnum.java @@ -48,9 +48,6 @@ public final class ConnectionIdentityProviderEnum { public static final ConnectionIdentityProviderEnum SALESFORCE_SANDBOX = new ConnectionIdentityProviderEnum(Value.SALESFORCE_SANDBOX, "salesforce-sandbox"); - public static final ConnectionIdentityProviderEnum MIICARD = - new ConnectionIdentityProviderEnum(Value.MIICARD, "miicard"); - public static final ConnectionIdentityProviderEnum FACEBOOK = new ConnectionIdentityProviderEnum(Value.FACEBOOK, "facebook"); @@ -81,8 +78,6 @@ public final class ConnectionIdentityProviderEnum { public static final ConnectionIdentityProviderEnum SMS = new ConnectionIdentityProviderEnum(Value.SMS, "sms"); - public static final ConnectionIdentityProviderEnum AOL = new ConnectionIdentityProviderEnum(Value.AOL, "aol"); - public static final ConnectionIdentityProviderEnum TWITTER = new ConnectionIdentityProviderEnum(Value.TWITTER, "twitter"); @@ -101,9 +96,6 @@ public final class ConnectionIdentityProviderEnum { public static final ConnectionIdentityProviderEnum PAYPAL_SANDBOX = new ConnectionIdentityProviderEnum(Value.PAYPAL_SANDBOX, "paypal-sandbox"); - public static final ConnectionIdentityProviderEnum RENREN = - new ConnectionIdentityProviderEnum(Value.RENREN, "renren"); - public static final ConnectionIdentityProviderEnum SAMLP = new ConnectionIdentityProviderEnum(Value.SAMLP, "samlp"); public static final ConnectionIdentityProviderEnum DROPBOX = @@ -123,14 +115,8 @@ public final class ConnectionIdentityProviderEnum { public static final ConnectionIdentityProviderEnum WAAD = new ConnectionIdentityProviderEnum(Value.WAAD, "waad"); - public static final ConnectionIdentityProviderEnum THECITY_SANDBOX = - new ConnectionIdentityProviderEnum(Value.THECITY_SANDBOX, "thecity-sandbox"); - public static final ConnectionIdentityProviderEnum OIDC = new ConnectionIdentityProviderEnum(Value.OIDC, "oidc"); - public static final ConnectionIdentityProviderEnum YAMMER = - new ConnectionIdentityProviderEnum(Value.YAMMER, "yammer"); - public static final ConnectionIdentityProviderEnum EVERNOTE_SANDBOX = new ConnectionIdentityProviderEnum(Value.EVERNOTE_SANDBOX, "evernote-sandbox"); @@ -170,9 +156,6 @@ public final class ConnectionIdentityProviderEnum { public static final ConnectionIdentityProviderEnum LINKEDIN = new ConnectionIdentityProviderEnum(Value.LINKEDIN, "linkedin"); - public static final ConnectionIdentityProviderEnum THECITY = - new ConnectionIdentityProviderEnum(Value.THECITY, "thecity"); - private final Value value; private final String string; @@ -236,8 +219,6 @@ public T visit(Visitor visitor) { return visitor.visitShopify(); case SALESFORCE_SANDBOX: return visitor.visitSalesforceSandbox(); - case MIICARD: - return visitor.visitMiicard(); case FACEBOOK: return visitor.visitFacebook(); case OAUTH1: @@ -260,8 +241,6 @@ public T visit(Visitor visitor) { return visitor.visitOffice365(); case SMS: return visitor.visitSms(); - case AOL: - return visitor.visitAol(); case TWITTER: return visitor.visitTwitter(); case WINDOWSLIVE: @@ -276,8 +255,6 @@ public T visit(Visitor visitor) { return visitor.visitBitly(); case PAYPAL_SANDBOX: return visitor.visitPaypalSandbox(); - case RENREN: - return visitor.visitRenren(); case SAMLP: return visitor.visitSamlp(); case DROPBOX: @@ -292,12 +269,8 @@ public T visit(Visitor visitor) { return visitor.visitThirtysevensignals(); case WAAD: return visitor.visitWaad(); - case THECITY_SANDBOX: - return visitor.visitThecitySandbox(); case OIDC: return visitor.visitOidc(); - case YAMMER: - return visitor.visitYammer(); case EVERNOTE_SANDBOX: return visitor.visitEvernoteSandbox(); case SALESFORCE_COMMUNITY: @@ -328,8 +301,6 @@ public T visit(Visitor visitor) { return visitor.visitPaypal(); case LINKEDIN: return visitor.visitLinkedin(); - case THECITY: - return visitor.visitThecity(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -369,8 +340,6 @@ public static ConnectionIdentityProviderEnum valueOf(String value) { return SHOPIFY; case "salesforce-sandbox": return SALESFORCE_SANDBOX; - case "miicard": - return MIICARD; case "facebook": return FACEBOOK; case "oauth1": @@ -393,8 +362,6 @@ public static ConnectionIdentityProviderEnum valueOf(String value) { return OFFICE365; case "sms": return SMS; - case "aol": - return AOL; case "twitter": return TWITTER; case "windowslive": @@ -409,8 +376,6 @@ public static ConnectionIdentityProviderEnum valueOf(String value) { return BITLY; case "paypal-sandbox": return PAYPAL_SANDBOX; - case "renren": - return RENREN; case "samlp": return SAMLP; case "dropbox": @@ -425,12 +390,8 @@ public static ConnectionIdentityProviderEnum valueOf(String value) { return THIRTYSEVENSIGNALS; case "waad": return WAAD; - case "thecity-sandbox": - return THECITY_SANDBOX; case "oidc": return OIDC; - case "yammer": - return YAMMER; case "evernote-sandbox": return EVERNOTE_SANDBOX; case "salesforce-community": @@ -461,8 +422,6 @@ public static ConnectionIdentityProviderEnum valueOf(String value) { return PAYPAL; case "linkedin": return LINKEDIN; - case "thecity": - return THECITY; default: return new ConnectionIdentityProviderEnum(Value.UNKNOWN, value); } @@ -481,8 +440,6 @@ public enum Value { BITBUCKET, - AOL, - AUTH0OIDC, AUTH0, @@ -527,8 +484,6 @@ public enum Value { LINKEDIN, - MIICARD, - OAUTH1, OAUTH2, @@ -547,8 +502,6 @@ public enum Value { PLANNINGCENTER, - RENREN, - SALESFORCE_COMMUNITY, SALESFORCE_SANDBOX, @@ -567,10 +520,6 @@ public enum Value { SOUNDCLOUD, - THECITY_SANDBOX, - - THECITY, - THIRTYSEVENSIGNALS, TWITTER, @@ -589,8 +538,6 @@ public enum Value { YAHOO, - YAMMER, - YANDEX, UNKNOWN @@ -609,8 +556,6 @@ public interface Visitor { T visitBitbucket(); - T visitAol(); - T visitAuth0Oidc(); T visitAuth0(); @@ -655,8 +600,6 @@ public interface Visitor { T visitLinkedin(); - T visitMiicard(); - T visitOauth1(); T visitOauth2(); @@ -675,8 +618,6 @@ public interface Visitor { T visitPlanningcenter(); - T visitRenren(); - T visitSalesforceCommunity(); T visitSalesforceSandbox(); @@ -695,10 +636,6 @@ public interface Visitor { T visitSoundcloud(); - T visitThecitySandbox(); - - T visitThecity(); - T visitThirtysevensignals(); T visitTwitter(); @@ -717,8 +654,6 @@ public interface Visitor { T visitYahoo(); - T visitYammer(); - T visitYandex(); T visitUnknown(String unknownType); diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAol.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAol.java deleted file mode 100644 index 851b2b6d5..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAol.java +++ /dev/null @@ -1,291 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.NullableNonemptyFilter; -import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSetter; -import com.fasterxml.jackson.annotation.Nulls; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import java.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 = ConnectionOptionsAol.Builder.class) -public final class ConnectionOptionsAol implements IConnectionOptionsOAuth2Common, IConnectionOptionsCommon { - private final Optional clientId; - - private final Optional clientSecret; - - private final Optional scope; - - private final Optional setUserRootAttributes; - - private final OptionalNullable>> - upstreamParams; - - private final Optional> nonPersistentAttrs; - - private final Map additionalProperties; - - private ConnectionOptionsAol( - Optional clientId, - Optional clientSecret, - Optional scope, - Optional setUserRootAttributes, - OptionalNullable>> upstreamParams, - Optional> nonPersistentAttrs, - Map additionalProperties) { - this.clientId = clientId; - this.clientSecret = clientSecret; - this.scope = scope; - this.setUserRootAttributes = setUserRootAttributes; - this.upstreamParams = upstreamParams; - this.nonPersistentAttrs = nonPersistentAttrs; - this.additionalProperties = additionalProperties; - } - - @JsonProperty("client_id") - @java.lang.Override - public Optional getClientId() { - return clientId; - } - - @JsonProperty("client_secret") - @java.lang.Override - public Optional getClientSecret() { - return clientSecret; - } - - @JsonProperty("scope") - @java.lang.Override - public Optional getScope() { - return scope; - } - - @JsonProperty("set_user_root_attributes") - @java.lang.Override - public Optional getSetUserRootAttributes() { - return setUserRootAttributes; - } - - @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; - } - - @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 ConnectionOptionsAol && equalTo((ConnectionOptionsAol) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(ConnectionOptionsAol other) { - return clientId.equals(other.clientId) - && clientSecret.equals(other.clientSecret) - && scope.equals(other.scope) - && setUserRootAttributes.equals(other.setUserRootAttributes) - && upstreamParams.equals(other.upstreamParams) - && nonPersistentAttrs.equals(other.nonPersistentAttrs); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash( - this.clientId, - this.clientSecret, - this.scope, - this.setUserRootAttributes, - this.upstreamParams, - this.nonPersistentAttrs); - } - - @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 clientId = Optional.empty(); - - private Optional clientSecret = Optional.empty(); - - private Optional scope = Optional.empty(); - - private Optional setUserRootAttributes = Optional.empty(); - - private OptionalNullable>> upstreamParams = - OptionalNullable.absent(); - - private Optional> nonPersistentAttrs = Optional.empty(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - public Builder from(ConnectionOptionsAol other) { - clientId(other.getClientId()); - clientSecret(other.getClientSecret()); - scope(other.getScope()); - setUserRootAttributes(other.getSetUserRootAttributes()); - upstreamParams(other.getUpstreamParams()); - nonPersistentAttrs(other.getNonPersistentAttrs()); - return this; - } - - @JsonSetter(value = "client_id", nulls = Nulls.SKIP) - public Builder clientId(Optional clientId) { - this.clientId = clientId; - return this; - } - - public Builder clientId(String clientId) { - this.clientId = Optional.ofNullable(clientId); - return this; - } - - @JsonSetter(value = "client_secret", nulls = Nulls.SKIP) - public Builder clientSecret(Optional clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - public Builder clientSecret(String clientSecret) { - this.clientSecret = Optional.ofNullable(clientSecret); - return this; - } - - @JsonSetter(value = "scope", nulls = Nulls.SKIP) - public Builder scope(Optional scope) { - this.scope = scope; - return this; - } - - public Builder scope(ConnectionScopeOAuth2 scope) { - this.scope = Optional.ofNullable(scope); - 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 = "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 nonPersistentAttrs(List nonPersistentAttrs) { - this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); - return this; - } - - public ConnectionOptionsAol build() { - return new ConnectionOptionsAol( - clientId, - clientSecret, - scope, - setUserRootAttributes, - upstreamParams, - nonPersistentAttrs, - additionalProperties); - } - - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0.java index 19b15f415..489cafb74 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0.java @@ -60,6 +60,8 @@ public final class ConnectionOptionsAuth0 implements IConnectionOptionsCommon { private final OptionalNullable passwordNoPersonalInfo; + private final Optional passwordOptions; + private final Optional> precedence; private final Optional realmFallback; @@ -89,6 +91,7 @@ private ConnectionOptionsAuth0( OptionalNullable passwordDictionary, OptionalNullable passwordHistory, OptionalNullable passwordNoPersonalInfo, + Optional passwordOptions, Optional> precedence, Optional realmFallback, Optional requiresUsername, @@ -112,6 +115,7 @@ private ConnectionOptionsAuth0( this.passwordDictionary = passwordDictionary; this.passwordHistory = passwordHistory; this.passwordNoPersonalInfo = passwordNoPersonalInfo; + this.passwordOptions = passwordOptions; this.precedence = precedence; this.realmFallback = realmFallback; this.requiresUsername = requiresUsername; @@ -238,6 +242,11 @@ public OptionalNullable getPasswordNoPe return passwordNoPersonalInfo; } + @JsonProperty("password_options") + public Optional getPasswordOptions() { + return passwordOptions; + } + @JsonProperty("precedence") public Optional> getPrecedence() { return precedence; @@ -340,6 +349,7 @@ private boolean equalTo(ConnectionOptionsAuth0 other) { && passwordDictionary.equals(other.passwordDictionary) && passwordHistory.equals(other.passwordHistory) && passwordNoPersonalInfo.equals(other.passwordNoPersonalInfo) + && passwordOptions.equals(other.passwordOptions) && precedence.equals(other.precedence) && realmFallback.equals(other.realmFallback) && requiresUsername.equals(other.requiresUsername) @@ -367,6 +377,7 @@ public int hashCode() { this.passwordDictionary, this.passwordHistory, this.passwordNoPersonalInfo, + this.passwordOptions, this.precedence, this.realmFallback, this.requiresUsername, @@ -422,6 +433,8 @@ public static final class Builder { private OptionalNullable passwordNoPersonalInfo = OptionalNullable.absent(); + private Optional passwordOptions = Optional.empty(); + private Optional> precedence = Optional.empty(); private Optional realmFallback = Optional.empty(); @@ -454,6 +467,7 @@ public Builder from(ConnectionOptionsAuth0 other) { passwordDictionary(other.getPasswordDictionary()); passwordHistory(other.getPasswordHistory()); passwordNoPersonalInfo(other.getPasswordNoPersonalInfo()); + passwordOptions(other.getPasswordOptions()); precedence(other.getPrecedence()); realmFallback(other.getRealmFallback()); requiresUsername(other.getRequiresUsername()); @@ -811,6 +825,17 @@ public Builder passwordNoPersonalInfo( return this; } + @JsonSetter(value = "password_options", nulls = Nulls.SKIP) + public Builder passwordOptions(Optional passwordOptions) { + this.passwordOptions = passwordOptions; + return this; + } + + public Builder passwordOptions(ConnectionPasswordOptions passwordOptions) { + this.passwordOptions = Optional.ofNullable(passwordOptions); + return this; + } + @JsonSetter(value = "precedence", nulls = Nulls.SKIP) public Builder precedence(Optional> precedence) { this.precedence = precedence; @@ -895,6 +920,7 @@ public ConnectionOptionsAuth0 build() { passwordDictionary, passwordHistory, passwordNoPersonalInfo, + passwordOptions, precedence, realmFallback, requiresUsername, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java index 5c1c553ee..c1ad8468c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java @@ -19,6 +19,7 @@ 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) @@ -34,7 +35,7 @@ public final class ConnectionOptionsAzureAd implements IConnectionOptionsCommon private final Optional basicProfile; - private final Optional clientId; + private final String clientId; private final Optional clientSecret; @@ -169,7 +170,7 @@ private ConnectionOptionsAzureAd( Optional appDomain, Optional appId, Optional basicProfile, - Optional clientId, + String clientId, Optional clientSecret, Optional> domainAliases, Optional extAccessToken, @@ -340,7 +341,7 @@ public Optional getBasicProfile() { } @JsonProperty("client_id") - public Optional getClientId() { + public String getClientId() { return clientId; } @@ -955,156 +956,592 @@ public String toString() { return ObjectMappers.stringify(this); } - public static Builder builder() { + public static ClientIdStage builder() { return new Builder(); } - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder { - private Optional> nonPersistentAttrs = Optional.empty(); + public interface ClientIdStage { + _FinalStage clientId(@NotNull String clientId); - private Optional apiEnableUsers = Optional.empty(); + Builder from(ConnectionOptionsAzureAd other); + } - private Optional appDomain = Optional.empty(); + public interface _FinalStage { + ConnectionOptionsAzureAd build(); - private Optional appId = Optional.empty(); + _FinalStage additionalProperty(String key, Object value); - private Optional basicProfile = Optional.empty(); + _FinalStage additionalProperties(Map additionalProperties); - private Optional clientId = Optional.empty(); + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); - private Optional clientSecret = Optional.empty(); + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); - private Optional> domainAliases = Optional.empty(); + /** + *

Enable users API

+ */ + _FinalStage apiEnableUsers(Optional apiEnableUsers); - private Optional extAccessToken = Optional.empty(); + _FinalStage apiEnableUsers(Boolean apiEnableUsers); - private Optional extAccountEnabled = Optional.empty(); + _FinalStage appDomain(Optional appDomain); - private Optional extAdmin = Optional.empty(); + _FinalStage appDomain(String appDomain); - private Optional extAgreedTerms = Optional.empty(); + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ */ + _FinalStage appId(Optional appId); - private Optional extAssignedLicenses = Optional.empty(); + _FinalStage appId(String appId); - private Optional extAssignedPlans = Optional.empty(); + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ */ + _FinalStage basicProfile(Optional basicProfile); - private Optional extAzureId = Optional.empty(); + _FinalStage basicProfile(Boolean basicProfile); - private Optional extCity = Optional.empty(); + _FinalStage clientSecret(Optional clientSecret); - private Optional extCountry = Optional.empty(); + _FinalStage clientSecret(String clientSecret); - private Optional extDepartment = Optional.empty(); + _FinalStage domainAliases(Optional> domainAliases); - private Optional extDirSyncEnabled = Optional.empty(); + _FinalStage domainAliases(List domainAliases); - private Optional extEmail = Optional.empty(); + /** + *

When false, prevents storing the user's Azure AD access token in the Auth0 user profile. When true (default), the access token is persisted for API access.

+ */ + _FinalStage extAccessToken(Optional extAccessToken); - private Optional extExpiresIn = Optional.empty(); + _FinalStage extAccessToken(Boolean extAccessToken); - private Optional extFamilyName = Optional.empty(); + /** + *

When false, prevents storing whether the user's Azure AD account is enabled. When true (default), the account enabled status is persisted in the user profile.

+ */ + _FinalStage extAccountEnabled(Optional extAccountEnabled); - private Optional extFax = Optional.empty(); + _FinalStage extAccountEnabled(Boolean extAccountEnabled); - private Optional extGivenName = Optional.empty(); + _FinalStage extAdmin(Optional extAdmin); - private Optional extGroupIds = Optional.empty(); + _FinalStage extAdmin(Boolean extAdmin); - private Optional extGroups = Optional.empty(); + _FinalStage extAgreedTerms(Optional extAgreedTerms); - private Optional extIsSuspended = Optional.empty(); + _FinalStage extAgreedTerms(Boolean extAgreedTerms); - private Optional extJobTitle = Optional.empty(); + /** + *

When false, prevents storing the list of Microsoft 365/Office 365 licenses assigned to the user. When true (default), license information is persisted in the user profile.

+ */ + _FinalStage extAssignedLicenses(Optional extAssignedLicenses); - private Optional extLastSync = Optional.empty(); + _FinalStage extAssignedLicenses(Boolean extAssignedLicenses); - private Optional extMobile = Optional.empty(); + _FinalStage extAssignedPlans(Optional extAssignedPlans); - private Optional extName = Optional.empty(); + _FinalStage extAssignedPlans(Boolean extAssignedPlans); - private Optional extNestedGroups = Optional.empty(); + /** + *

When false, prevents storing the user's Azure ID identifier. When true (default), the Azure ID is persisted. Note: 'oid' (Object ID) is the recommended unique identifier for single-tenant connections.

+ */ + _FinalStage extAzureId(Optional extAzureId); - private Optional extNickname = Optional.empty(); + _FinalStage extAzureId(Boolean extAzureId); - private Optional extOid = Optional.empty(); + /** + *

When false, prevents storing the user's city from Azure AD. When true (default), city information is persisted in the user profile.

+ */ + _FinalStage extCity(Optional extCity); - private Optional extPhone = Optional.empty(); + _FinalStage extCity(Boolean extCity); - private Optional extPhysicalDeliveryOfficeName = Optional.empty(); + /** + *

When false, prevents storing the user's country from Azure AD. When true (default), country information is persisted in the user profile.

+ */ + _FinalStage extCountry(Optional extCountry); - private Optional extPostalCode = Optional.empty(); + _FinalStage extCountry(Boolean extCountry); - private Optional extPreferredLanguage = Optional.empty(); + /** + *

When false, prevents storing the user's department from Azure AD. When true (default), department information is persisted in the user profile.

+ */ + _FinalStage extDepartment(Optional extDepartment); - private Optional extProfile = Optional.empty(); + _FinalStage extDepartment(Boolean extDepartment); - private Optional extProvisionedPlans = Optional.empty(); + /** + *

When false, prevents storing whether directory synchronization is enabled for the user. When true (default), directory sync status is persisted in the user profile.

+ */ + _FinalStage extDirSyncEnabled(Optional extDirSyncEnabled); - private Optional extProvisioningErrors = Optional.empty(); + _FinalStage extDirSyncEnabled(Boolean extDirSyncEnabled); - private Optional extProxyAddresses = Optional.empty(); + /** + *

When false, prevents storing the user's email address from Azure AD. When true (default), email is persisted in the user profile.

+ */ + _FinalStage extEmail(Optional extEmail); - private Optional extPuid = Optional.empty(); + _FinalStage extEmail(Boolean extEmail); - private Optional extRefreshToken = Optional.empty(); + /** + *

When false, prevents storing the token expiration time (in seconds). When true (default), expiration information is persisted in the user profile.

+ */ + _FinalStage extExpiresIn(Optional extExpiresIn); - private Optional extRoles = Optional.empty(); + _FinalStage extExpiresIn(Boolean extExpiresIn); - private Optional extState = Optional.empty(); + /** + *

When false, prevents storing the user's family name (last name) from Azure AD. When true (default), family name is persisted in the user profile.

+ */ + _FinalStage extFamilyName(Optional extFamilyName); - private Optional extStreet = Optional.empty(); + _FinalStage extFamilyName(Boolean extFamilyName); - private Optional extTelephoneNumber = Optional.empty(); + /** + *

When false, prevents storing the user's fax number from Azure AD. When true (default), fax information is persisted in the user profile.

+ */ + _FinalStage extFax(Optional extFax); - private Optional extTenantid = Optional.empty(); + _FinalStage extFax(Boolean extFax); - private Optional extUpn = Optional.empty(); + /** + *

When false, prevents storing the user's given name (first name) from Azure AD. When true (default), given name is persisted in the user profile.

+ */ + _FinalStage extGivenName(Optional extGivenName); - private Optional extUsageLocation = Optional.empty(); + _FinalStage extGivenName(Boolean extGivenName); - private Optional extUserId = Optional.empty(); + /** + *

When false, prevents storing the list of Azure AD group IDs the user is a member of. When true (default), group membership IDs are persisted. See ext_groups for retrieving group details.

+ */ + _FinalStage extGroupIds(Optional extGroupIds); - private OptionalNullable federatedConnectionsAccessTokens = + _FinalStage extGroupIds(Boolean extGroupIds); + + _FinalStage extGroups(Optional extGroups); + + _FinalStage extGroups(Boolean extGroups); + + _FinalStage extIsSuspended(Optional extIsSuspended); + + _FinalStage extIsSuspended(Boolean extIsSuspended); + + /** + *

When false, prevents storing the user's job title from Azure AD. When true (default), job title information is persisted in the user profile.

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

When false, prevents storing the timestamp of the last directory synchronization. When true (default), the last sync date is persisted in the user profile.

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

When false, prevents storing the user's mobile phone number from Azure AD. When true (default), mobile number is persisted in the user profile.

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

When false, prevents storing the user's full name from Azure AD. When true (default), full name is persisted in the user profile.

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

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

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

When false, prevents storing the user's nickname or display name from Azure AD. When true (default), nickname is persisted in the user profile.

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

When false, prevents storing the user's Object ID (oid) from Azure AD. When true (default), the oid is persisted. Note: 'oid' is the recommended unique identifier for single-tenant connections and required for SCIM.

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

When false, prevents storing the user's phone number from Azure AD. When true (default), phone number is persisted in the user profile.

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

When false, prevents storing the user's office location from Azure AD. When true (default), office location is persisted in the user profile.

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

When false, prevents storing the user's postal code from Azure AD. When true (default), postal code is persisted in the user profile.

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

When false, prevents storing the user's preferred language from Azure AD. When true (default), language preference is persisted in the user profile.

+ */ + _FinalStage extPreferredLanguage(Optional extPreferredLanguage); + + _FinalStage extPreferredLanguage(Boolean extPreferredLanguage); + + _FinalStage extProfile(Optional extProfile); + + _FinalStage extProfile(Boolean extProfile); + + /** + *

When false, prevents storing the list of service plans provisioned to the user. When true (default), provisioned plans are persisted in the user profile.

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

When false, prevents storing provisioning errors that occurred during synchronization. When true (default), error information is persisted. Useful for troubleshooting sync issues.

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

When false, prevents storing all proxy email addresses (email aliases) for the user. When true (default), proxy addresses are persisted in the user profile.

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

When false, prevents storing the user's Passport User ID (puid). When true (default), puid is persisted in the user profile. Legacy attribute.

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

When false, prevents storing the Azure AD refresh token. When true (default), the refresh token is persisted for offline access. Required for token refresh in long-lived applications.

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

When false, prevents storing Azure AD application roles assigned to the user. When true (default), role information is persisted. Useful for RBAC in applications.

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

When false, prevents storing the user's state (province/region) from Azure AD. When true (default), state information is persisted in the user profile.

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

When false, prevents storing the user's street address from Azure AD. When true (default), street address is persisted in the user profile.

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

When false, prevents storing the user's telephone number from Azure AD. When true (default), telephone number is persisted in the user profile.

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

When false, prevents storing the user's Azure AD tenant ID. When true (default), tenant ID is persisted. Useful for identifying which Azure AD organization the user belongs to.

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

When false, prevents storing the user's User Principal Name (UPN) from Azure AD. When true (default), UPN is persisted. UPN is the user's logon name (e.g., user@contoso.com).

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

When false, prevents storing the user's usage location for license assignment. When true (default), usage location is persisted in the user profile.

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

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

+ */ + _FinalStage extUserId(Optional extUserId); + + _FinalStage extUserId(Boolean extUserId); + + _FinalStage federatedConnectionsAccessTokens( + @Nullable + OptionalNullable federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + Optional federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + com.auth0.client.mgmt.core.Nullable + federatedConnectionsAccessTokens); + + /** + *

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

+ */ + _FinalStage granted(Optional granted); + + _FinalStage granted(Boolean granted); + + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + _FinalStage identityApi(Optional identityApi); + + _FinalStage identityApi(ConnectionIdentityApiEnumAzureAd identityApi); + + _FinalStage maxGroupsToRetrieve(Optional maxGroupsToRetrieve); + + _FinalStage maxGroupsToRetrieve(String maxGroupsToRetrieve); + + _FinalStage scope(Optional> scope); + + _FinalStage scope(List scope); + + _FinalStage setUserRootAttributes(Optional setUserRootAttributes); + + _FinalStage setUserRootAttributes(ConnectionSetUserRootAttributesEnum setUserRootAttributes); + + _FinalStage shouldTrustEmailVerifiedConnection( + Optional shouldTrustEmailVerifiedConnection); + + _FinalStage shouldTrustEmailVerifiedConnection( + ConnectionShouldTrustEmailVerifiedConnectionEnum shouldTrustEmailVerifiedConnection); + + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + _FinalStage tenantId(Optional tenantId); + + _FinalStage tenantId(String tenantId); + + _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); + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ */ + _FinalStage useWsfed(Optional useWsfed); + + _FinalStage useWsfed(Boolean useWsfed); + + _FinalStage useCommonEndpoint(Optional useCommonEndpoint); + + _FinalStage useCommonEndpoint(Boolean useCommonEndpoint); + + _FinalStage useridAttribute(Optional useridAttribute); + + _FinalStage useridAttribute(ConnectionUseridAttributeEnumAzureAd useridAttribute); + + _FinalStage waadProtocol(Optional waadProtocol); + + _FinalStage waadProtocol(ConnectionWaadProtocolEnumAzureAd waadProtocol); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional waadProtocol = Optional.empty(); + + private Optional useridAttribute = Optional.empty(); + + private Optional useCommonEndpoint = Optional.empty(); + + private Optional useWsfed = Optional.empty(); + + private OptionalNullable>> upstreamParams = OptionalNullable.absent(); - private Optional granted = Optional.empty(); + private Optional> thumbprints = Optional.empty(); - private Optional iconUrl = Optional.empty(); + private Optional tenantId = Optional.empty(); - private Optional identityApi = Optional.empty(); + private Optional tenantDomain = Optional.empty(); + + private Optional shouldTrustEmailVerifiedConnection = + Optional.empty(); + + private Optional setUserRootAttributes = Optional.empty(); + + private Optional> scope = Optional.empty(); private Optional maxGroupsToRetrieve = Optional.empty(); - private Optional> scope = Optional.empty(); + private Optional identityApi = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional granted = Optional.empty(); + + private OptionalNullable federatedConnectionsAccessTokens = + OptionalNullable.absent(); + + private Optional extUserId = Optional.empty(); + + private Optional extUsageLocation = Optional.empty(); + + private Optional extUpn = Optional.empty(); + + private Optional extTenantid = Optional.empty(); + + private Optional extTelephoneNumber = Optional.empty(); + + private Optional extStreet = Optional.empty(); + + private Optional extState = Optional.empty(); + + private Optional extRoles = Optional.empty(); + + private Optional extRefreshToken = Optional.empty(); + + private Optional extPuid = Optional.empty(); + + private Optional extProxyAddresses = Optional.empty(); + + private Optional extProvisioningErrors = Optional.empty(); + + private Optional extProvisionedPlans = Optional.empty(); + + private Optional extProfile = Optional.empty(); + + private Optional extPreferredLanguage = Optional.empty(); + + private Optional extPostalCode = Optional.empty(); + + private Optional extPhysicalDeliveryOfficeName = Optional.empty(); + + private Optional extPhone = Optional.empty(); + + private Optional extOid = Optional.empty(); + + private Optional extNickname = Optional.empty(); + + private Optional extNestedGroups = Optional.empty(); + + private Optional extName = Optional.empty(); + + private Optional extMobile = Optional.empty(); + + private Optional extLastSync = Optional.empty(); + + private Optional extJobTitle = Optional.empty(); + + private Optional extIsSuspended = Optional.empty(); + + private Optional extGroups = Optional.empty(); + + private Optional extGroupIds = Optional.empty(); + + private Optional extGivenName = Optional.empty(); + + private Optional extFax = Optional.empty(); + + private Optional extFamilyName = Optional.empty(); + + private Optional extExpiresIn = Optional.empty(); + + private Optional extEmail = Optional.empty(); + + private Optional extDirSyncEnabled = Optional.empty(); + + private Optional extDepartment = Optional.empty(); + + private Optional extCountry = Optional.empty(); + + private Optional extCity = Optional.empty(); + + private Optional extAzureId = Optional.empty(); + + private Optional extAssignedPlans = Optional.empty(); + + private Optional extAssignedLicenses = Optional.empty(); + + private Optional extAgreedTerms = Optional.empty(); - private Optional setUserRootAttributes = Optional.empty(); + private Optional extAdmin = Optional.empty(); - private Optional shouldTrustEmailVerifiedConnection = - Optional.empty(); + private Optional extAccountEnabled = Optional.empty(); - private Optional tenantDomain = Optional.empty(); + private Optional extAccessToken = Optional.empty(); - private Optional tenantId = Optional.empty(); + private Optional> domainAliases = Optional.empty(); - private Optional> thumbprints = Optional.empty(); + private Optional clientSecret = Optional.empty(); - private OptionalNullable>> upstreamParams = - OptionalNullable.absent(); + private Optional basicProfile = Optional.empty(); - private Optional useWsfed = Optional.empty(); + private Optional appId = Optional.empty(); - private Optional useCommonEndpoint = Optional.empty(); + private Optional appDomain = Optional.empty(); - private Optional useridAttribute = Optional.empty(); + private Optional apiEnableUsers = Optional.empty(); - private Optional waadProtocol = Optional.empty(); + private Optional> nonPersistentAttrs = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); private Builder() {} + @java.lang.Override public Builder from(ConnectionOptionsAzureAd other) { nonPersistentAttrs(other.getNonPersistentAttrs()); apiEnableUsers(other.getApiEnableUsers()); @@ -1177,939 +1614,1246 @@ public Builder from(ConnectionOptionsAzureAd other) { return this; } - @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) - public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { - this.nonPersistentAttrs = nonPersistentAttrs; + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); return this; } - public Builder nonPersistentAttrs(List nonPersistentAttrs) { - this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + @java.lang.Override + public _FinalStage waadProtocol(ConnectionWaadProtocolEnumAzureAd waadProtocol) { + this.waadProtocol = Optional.ofNullable(waadProtocol); return this; } - /** - *

Enable users API

- */ - @JsonSetter(value = "api_enable_users", nulls = Nulls.SKIP) - public Builder apiEnableUsers(Optional apiEnableUsers) { - this.apiEnableUsers = apiEnableUsers; + @java.lang.Override + @JsonSetter(value = "waad_protocol", nulls = Nulls.SKIP) + public _FinalStage waadProtocol(Optional waadProtocol) { + this.waadProtocol = waadProtocol; return this; } - public Builder apiEnableUsers(Boolean apiEnableUsers) { - this.apiEnableUsers = Optional.ofNullable(apiEnableUsers); + @java.lang.Override + public _FinalStage useridAttribute(ConnectionUseridAttributeEnumAzureAd useridAttribute) { + this.useridAttribute = Optional.ofNullable(useridAttribute); return this; } - @JsonSetter(value = "app_domain", nulls = Nulls.SKIP) - public Builder appDomain(Optional appDomain) { - this.appDomain = appDomain; + @java.lang.Override + @JsonSetter(value = "userid_attribute", nulls = Nulls.SKIP) + public _FinalStage useridAttribute(Optional useridAttribute) { + this.useridAttribute = useridAttribute; return this; } - public Builder appDomain(String appDomain) { - this.appDomain = Optional.ofNullable(appDomain); + @java.lang.Override + public _FinalStage useCommonEndpoint(Boolean useCommonEndpoint) { + this.useCommonEndpoint = Optional.ofNullable(useCommonEndpoint); return this; } - /** - *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

- */ - @JsonSetter(value = "app_id", nulls = Nulls.SKIP) - public Builder appId(Optional appId) { - this.appId = appId; + @java.lang.Override + @JsonSetter(value = "useCommonEndpoint", nulls = Nulls.SKIP) + public _FinalStage useCommonEndpoint(Optional useCommonEndpoint) { + this.useCommonEndpoint = useCommonEndpoint; return this; } - public Builder appId(String appId) { - this.appId = Optional.ofNullable(appId); + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

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

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

*/ - @JsonSetter(value = "basic_profile", nulls = Nulls.SKIP) - public Builder basicProfile(Optional basicProfile) { - this.basicProfile = basicProfile; + @java.lang.Override + @JsonSetter(value = "use_wsfed", nulls = Nulls.SKIP) + public _FinalStage useWsfed(Optional useWsfed) { + this.useWsfed = useWsfed; return this; } - public Builder basicProfile(Boolean basicProfile) { - this.basicProfile = Optional.ofNullable(basicProfile); + @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; } - @JsonSetter(value = "client_id", nulls = Nulls.SKIP) - public Builder clientId(Optional clientId) { - this.clientId = clientId; + @java.lang.Override + public _FinalStage upstreamParams( + Optional>> upstreamParams) { + if (upstreamParams.isPresent()) { + this.upstreamParams = OptionalNullable.of(upstreamParams.get()); + } else { + this.upstreamParams = OptionalNullable.absent(); + } return this; } - public Builder clientId(String clientId) { - this.clientId = Optional.ofNullable(clientId); + @java.lang.Override + public _FinalStage upstreamParams( + Map> upstreamParams) { + this.upstreamParams = OptionalNullable.of(upstreamParams); return this; } - @JsonSetter(value = "client_secret", nulls = Nulls.SKIP) - public Builder clientSecret(Optional clientSecret) { - this.clientSecret = clientSecret; + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams( + @Nullable + OptionalNullable>> + upstreamParams) { + this.upstreamParams = upstreamParams; return this; } - public Builder clientSecret(String clientSecret) { - this.clientSecret = Optional.ofNullable(clientSecret); + @java.lang.Override + public _FinalStage thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); return this; } - @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) - public Builder domainAliases(Optional> domainAliases) { - this.domainAliases = domainAliases; + @java.lang.Override + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public _FinalStage thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; return this; } - public Builder domainAliases(List domainAliases) { - this.domainAliases = Optional.ofNullable(domainAliases); + @java.lang.Override + public _FinalStage tenantId(String tenantId) { + this.tenantId = Optional.ofNullable(tenantId); return this; } - /** - *

When false, prevents storing the user's Azure AD access token in the Auth0 user profile. When true (default), the access token is persisted for API access.

- */ - @JsonSetter(value = "ext_access_token", nulls = Nulls.SKIP) - public Builder extAccessToken(Optional extAccessToken) { - this.extAccessToken = extAccessToken; + @java.lang.Override + @JsonSetter(value = "tenantId", nulls = Nulls.SKIP) + public _FinalStage tenantId(Optional tenantId) { + this.tenantId = tenantId; return this; } - public Builder extAccessToken(Boolean extAccessToken) { - this.extAccessToken = Optional.ofNullable(extAccessToken); + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); return this; } - /** - *

When false, prevents storing whether the user's Azure AD account is enabled. When true (default), the account enabled status is persisted in the user profile.

- */ - @JsonSetter(value = "ext_account_enabled", nulls = Nulls.SKIP) - public Builder extAccountEnabled(Optional extAccountEnabled) { - this.extAccountEnabled = extAccountEnabled; + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; return this; } - public Builder extAccountEnabled(Boolean extAccountEnabled) { - this.extAccountEnabled = Optional.ofNullable(extAccountEnabled); + @java.lang.Override + public _FinalStage shouldTrustEmailVerifiedConnection( + ConnectionShouldTrustEmailVerifiedConnectionEnum shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = Optional.ofNullable(shouldTrustEmailVerifiedConnection); return this; } - @JsonSetter(value = "ext_admin", nulls = Nulls.SKIP) - public Builder extAdmin(Optional extAdmin) { - this.extAdmin = extAdmin; + @java.lang.Override + @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) + public _FinalStage shouldTrustEmailVerifiedConnection( + Optional shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; return this; } - public Builder extAdmin(Boolean extAdmin) { - this.extAdmin = Optional.ofNullable(extAdmin); + @java.lang.Override + public _FinalStage setUserRootAttributes(ConnectionSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); return this; } - @JsonSetter(value = "ext_agreed_terms", nulls = Nulls.SKIP) - public Builder extAgreedTerms(Optional extAgreedTerms) { - this.extAgreedTerms = extAgreedTerms; + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes(Optional setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; return this; } - public Builder extAgreedTerms(Boolean extAgreedTerms) { - this.extAgreedTerms = Optional.ofNullable(extAgreedTerms); + @java.lang.Override + public _FinalStage scope(List scope) { + this.scope = Optional.ofNullable(scope); return this; } - /** - *

When false, prevents storing the list of Microsoft 365/Office 365 licenses assigned to the user. When true (default), license information is persisted in the user profile.

- */ - @JsonSetter(value = "ext_assigned_licenses", nulls = Nulls.SKIP) - public Builder extAssignedLicenses(Optional extAssignedLicenses) { - this.extAssignedLicenses = extAssignedLicenses; + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional> scope) { + this.scope = scope; return this; } - public Builder extAssignedLicenses(Boolean extAssignedLicenses) { - this.extAssignedLicenses = Optional.ofNullable(extAssignedLicenses); + @java.lang.Override + public _FinalStage maxGroupsToRetrieve(String maxGroupsToRetrieve) { + this.maxGroupsToRetrieve = Optional.ofNullable(maxGroupsToRetrieve); return this; } - @JsonSetter(value = "ext_assigned_plans", nulls = Nulls.SKIP) - public Builder extAssignedPlans(Optional extAssignedPlans) { - this.extAssignedPlans = extAssignedPlans; + @java.lang.Override + @JsonSetter(value = "max_groups_to_retrieve", nulls = Nulls.SKIP) + public _FinalStage maxGroupsToRetrieve(Optional maxGroupsToRetrieve) { + this.maxGroupsToRetrieve = maxGroupsToRetrieve; return this; } - public Builder extAssignedPlans(Boolean extAssignedPlans) { - this.extAssignedPlans = Optional.ofNullable(extAssignedPlans); + @java.lang.Override + public _FinalStage identityApi(ConnectionIdentityApiEnumAzureAd identityApi) { + this.identityApi = Optional.ofNullable(identityApi); return this; } - /** - *

When false, prevents storing the user's Azure ID identifier. When true (default), the Azure ID is persisted. Note: 'oid' (Object ID) is the recommended unique identifier for single-tenant connections.

- */ - @JsonSetter(value = "ext_azure_id", nulls = Nulls.SKIP) - public Builder extAzureId(Optional extAzureId) { - this.extAzureId = extAzureId; + @java.lang.Override + @JsonSetter(value = "identity_api", nulls = Nulls.SKIP) + public _FinalStage identityApi(Optional identityApi) { + this.identityApi = identityApi; return this; } - public Builder extAzureId(Boolean extAzureId) { - this.extAzureId = Optional.ofNullable(extAzureId); + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); return this; } - /** - *

When false, prevents storing the user's city from Azure AD. When true (default), city information is persisted in the user profile.

- */ - @JsonSetter(value = "ext_city", nulls = Nulls.SKIP) - public Builder extCity(Optional extCity) { - this.extCity = extCity; + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; return this; } - public Builder extCity(Boolean extCity) { - this.extCity = Optional.ofNullable(extCity); + /** + *

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

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

When false, prevents storing the user's country from Azure AD. When true (default), country information is persisted in the user profile.

+ *

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

*/ - @JsonSetter(value = "ext_country", nulls = Nulls.SKIP) - public Builder extCountry(Optional extCountry) { - this.extCountry = extCountry; + @java.lang.Override + @JsonSetter(value = "granted", nulls = Nulls.SKIP) + public _FinalStage granted(Optional granted) { + this.granted = granted; return this; } - public Builder extCountry(Boolean extCountry) { - this.extCountry = Optional.ofNullable(extCountry); + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + com.auth0.client.mgmt.core.Nullable + federatedConnectionsAccessTokens) { + if (federatedConnectionsAccessTokens.isNull()) { + this.federatedConnectionsAccessTokens = OptionalNullable.ofNull(); + } else if (federatedConnectionsAccessTokens.isEmpty()) { + this.federatedConnectionsAccessTokens = OptionalNullable.absent(); + } else { + this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); + } return this; } - /** - *

When false, prevents storing the user's department from Azure AD. When true (default), department information is persisted in the user profile.

- */ - @JsonSetter(value = "ext_department", nulls = Nulls.SKIP) - public Builder extDepartment(Optional extDepartment) { - this.extDepartment = extDepartment; + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + Optional federatedConnectionsAccessTokens) { + if (federatedConnectionsAccessTokens.isPresent()) { + this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); + } else { + this.federatedConnectionsAccessTokens = OptionalNullable.absent(); + } return this; } - public Builder extDepartment(Boolean extDepartment) { - this.extDepartment = Optional.ofNullable(extDepartment); + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + ConnectionFederatedConnectionsAccessTokens federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens); return this; } - /** - *

When false, prevents storing whether directory synchronization is enabled for the user. When true (default), directory sync status is persisted in the user profile.

- */ - @JsonSetter(value = "ext_dir_sync_enabled", nulls = Nulls.SKIP) - public Builder extDirSyncEnabled(Optional extDirSyncEnabled) { - this.extDirSyncEnabled = extDirSyncEnabled; + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + @Nullable + OptionalNullable federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; return this; } - public Builder extDirSyncEnabled(Boolean extDirSyncEnabled) { - this.extDirSyncEnabled = Optional.ofNullable(extDirSyncEnabled); + /** + *

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

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

When false, prevents storing the user's email address from Azure AD. When true (default), email is persisted in the user profile.

+ *

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

*/ - @JsonSetter(value = "ext_email", nulls = Nulls.SKIP) - public Builder extEmail(Optional extEmail) { - this.extEmail = extEmail; + @java.lang.Override + @JsonSetter(value = "ext_user_id", nulls = Nulls.SKIP) + public _FinalStage extUserId(Optional extUserId) { + this.extUserId = extUserId; return this; } - public Builder extEmail(Boolean extEmail) { - this.extEmail = Optional.ofNullable(extEmail); + /** + *

When false, prevents storing the user's usage location for license assignment. When true (default), usage location is persisted in the user profile.

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

When false, prevents storing the token expiration time (in seconds). When true (default), expiration information is persisted in the user profile.

+ *

When false, prevents storing the user's usage location for license assignment. When true (default), usage location is persisted in the user profile.

*/ - @JsonSetter(value = "ext_expires_in", nulls = Nulls.SKIP) - public Builder extExpiresIn(Optional extExpiresIn) { - this.extExpiresIn = extExpiresIn; + @java.lang.Override + @JsonSetter(value = "ext_usage_location", nulls = Nulls.SKIP) + public _FinalStage extUsageLocation(Optional extUsageLocation) { + this.extUsageLocation = extUsageLocation; return this; } - public Builder extExpiresIn(Boolean extExpiresIn) { - this.extExpiresIn = Optional.ofNullable(extExpiresIn); + /** + *

When false, prevents storing the user's User Principal Name (UPN) from Azure AD. When true (default), UPN is persisted. UPN is the user's logon name (e.g., user@contoso.com).

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

When false, prevents storing the user's family name (last name) from Azure AD. When true (default), family name is persisted in the user profile.

+ *

When false, prevents storing the user's User Principal Name (UPN) from Azure AD. When true (default), UPN is persisted. UPN is the user's logon name (e.g., user@contoso.com).

*/ - @JsonSetter(value = "ext_family_name", nulls = Nulls.SKIP) - public Builder extFamilyName(Optional extFamilyName) { - this.extFamilyName = extFamilyName; + @java.lang.Override + @JsonSetter(value = "ext_upn", nulls = Nulls.SKIP) + public _FinalStage extUpn(Optional extUpn) { + this.extUpn = extUpn; return this; } - public Builder extFamilyName(Boolean extFamilyName) { - this.extFamilyName = Optional.ofNullable(extFamilyName); + /** + *

When false, prevents storing the user's Azure AD tenant ID. When true (default), tenant ID is persisted. Useful for identifying which Azure AD organization the user belongs to.

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

When false, prevents storing the user's fax number from Azure AD. When true (default), fax information is persisted in the user profile.

+ *

When false, prevents storing the user's Azure AD tenant ID. When true (default), tenant ID is persisted. Useful for identifying which Azure AD organization the user belongs to.

*/ - @JsonSetter(value = "ext_fax", nulls = Nulls.SKIP) - public Builder extFax(Optional extFax) { - this.extFax = extFax; + @java.lang.Override + @JsonSetter(value = "ext_tenantid", nulls = Nulls.SKIP) + public _FinalStage extTenantid(Optional extTenantid) { + this.extTenantid = extTenantid; return this; } - public Builder extFax(Boolean extFax) { - this.extFax = Optional.ofNullable(extFax); + /** + *

When false, prevents storing the user's telephone number from Azure AD. When true (default), telephone number is persisted in the user profile.

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

When false, prevents storing the user's given name (first name) from Azure AD. When true (default), given name is persisted in the user profile.

- */ - @JsonSetter(value = "ext_given_name", nulls = Nulls.SKIP) - public Builder extGivenName(Optional extGivenName) { - this.extGivenName = extGivenName; + *

When false, prevents storing the user's telephone number from Azure AD. When true (default), telephone number is persisted in the user profile.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_telephoneNumber", nulls = Nulls.SKIP) + public _FinalStage extTelephoneNumber(Optional extTelephoneNumber) { + this.extTelephoneNumber = extTelephoneNumber; return this; } - public Builder extGivenName(Boolean extGivenName) { - this.extGivenName = Optional.ofNullable(extGivenName); + /** + *

When false, prevents storing the user's street address from Azure AD. When true (default), street address is persisted in the user profile.

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

When false, prevents storing the list of Azure AD group IDs the user is a member of. When true (default), group membership IDs are persisted. See ext_groups for retrieving group details.

+ *

When false, prevents storing the user's street address from Azure AD. When true (default), street address is persisted in the user profile.

*/ - @JsonSetter(value = "ext_group_ids", nulls = Nulls.SKIP) - public Builder extGroupIds(Optional extGroupIds) { - this.extGroupIds = extGroupIds; + @java.lang.Override + @JsonSetter(value = "ext_street", nulls = Nulls.SKIP) + public _FinalStage extStreet(Optional extStreet) { + this.extStreet = extStreet; return this; } - public Builder extGroupIds(Boolean extGroupIds) { - this.extGroupIds = Optional.ofNullable(extGroupIds); + /** + *

When false, prevents storing the user's state (province/region) from Azure AD. When true (default), state information is persisted in the user profile.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extState(Boolean extState) { + this.extState = Optional.ofNullable(extState); return this; } - @JsonSetter(value = "ext_groups", nulls = Nulls.SKIP) - public Builder extGroups(Optional extGroups) { - this.extGroups = extGroups; + /** + *

When false, prevents storing the user's state (province/region) from Azure AD. When true (default), state information is persisted in the user profile.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_state", nulls = Nulls.SKIP) + public _FinalStage extState(Optional extState) { + this.extState = extState; return this; } - public Builder extGroups(Boolean extGroups) { - this.extGroups = Optional.ofNullable(extGroups); + /** + *

When false, prevents storing Azure AD application roles assigned to the user. When true (default), role information is persisted. Useful for RBAC in applications.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extRoles(Boolean extRoles) { + this.extRoles = Optional.ofNullable(extRoles); return this; } - @JsonSetter(value = "ext_is_suspended", nulls = Nulls.SKIP) - public Builder extIsSuspended(Optional extIsSuspended) { - this.extIsSuspended = extIsSuspended; + /** + *

When false, prevents storing Azure AD application roles assigned to the user. When true (default), role information is persisted. Useful for RBAC in applications.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_roles", nulls = Nulls.SKIP) + public _FinalStage extRoles(Optional extRoles) { + this.extRoles = extRoles; return this; } - public Builder extIsSuspended(Boolean extIsSuspended) { - this.extIsSuspended = Optional.ofNullable(extIsSuspended); + /** + *

When false, prevents storing the Azure AD refresh token. When true (default), the refresh token is persisted for offline access. Required for token refresh in long-lived applications.

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

When false, prevents storing the user's job title from Azure AD. When true (default), job title information is persisted in the user profile.

+ *

When false, prevents storing the Azure AD refresh token. When true (default), the refresh token is persisted for offline access. Required for token refresh in long-lived applications.

*/ - @JsonSetter(value = "ext_job_title", nulls = Nulls.SKIP) - public Builder extJobTitle(Optional extJobTitle) { - this.extJobTitle = extJobTitle; + @java.lang.Override + @JsonSetter(value = "ext_refresh_token", nulls = Nulls.SKIP) + public _FinalStage extRefreshToken(Optional extRefreshToken) { + this.extRefreshToken = extRefreshToken; return this; } - public Builder extJobTitle(Boolean extJobTitle) { - this.extJobTitle = Optional.ofNullable(extJobTitle); + /** + *

When false, prevents storing the user's Passport User ID (puid). When true (default), puid is persisted in the user profile. Legacy attribute.

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

When false, prevents storing the timestamp of the last directory synchronization. When true (default), the last sync date is persisted in the user profile.

+ *

When false, prevents storing the user's Passport User ID (puid). When true (default), puid is persisted in the user profile. Legacy attribute.

*/ - @JsonSetter(value = "ext_last_sync", nulls = Nulls.SKIP) - public Builder extLastSync(Optional extLastSync) { - this.extLastSync = extLastSync; + @java.lang.Override + @JsonSetter(value = "ext_puid", nulls = Nulls.SKIP) + public _FinalStage extPuid(Optional extPuid) { + this.extPuid = extPuid; return this; } - public Builder extLastSync(Boolean extLastSync) { - this.extLastSync = Optional.ofNullable(extLastSync); + /** + *

When false, prevents storing all proxy email addresses (email aliases) for the user. When true (default), proxy addresses are persisted in the user profile.

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

When false, prevents storing the user's mobile phone number from Azure AD. When true (default), mobile number is persisted in the user profile.

+ *

When false, prevents storing all proxy email addresses (email aliases) for the user. When true (default), proxy addresses are persisted in the user profile.

*/ - @JsonSetter(value = "ext_mobile", nulls = Nulls.SKIP) - public Builder extMobile(Optional extMobile) { - this.extMobile = extMobile; + @java.lang.Override + @JsonSetter(value = "ext_proxy_addresses", nulls = Nulls.SKIP) + public _FinalStage extProxyAddresses(Optional extProxyAddresses) { + this.extProxyAddresses = extProxyAddresses; return this; } - public Builder extMobile(Boolean extMobile) { - this.extMobile = Optional.ofNullable(extMobile); + /** + *

When false, prevents storing provisioning errors that occurred during synchronization. When true (default), error information is persisted. Useful for troubleshooting sync issues.

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

When false, prevents storing the user's full name from Azure AD. When true (default), full name is persisted in the user profile.

+ *

When false, prevents storing provisioning errors that occurred during synchronization. When true (default), error information is persisted. Useful for troubleshooting sync issues.

*/ - @JsonSetter(value = "ext_name", nulls = Nulls.SKIP) - public Builder extName(Optional extName) { - this.extName = extName; + @java.lang.Override + @JsonSetter(value = "ext_provisioning_errors", nulls = Nulls.SKIP) + public _FinalStage extProvisioningErrors(Optional extProvisioningErrors) { + this.extProvisioningErrors = extProvisioningErrors; return this; } - public Builder extName(Boolean extName) { - this.extName = Optional.ofNullable(extName); + /** + *

When false, prevents storing the list of service plans provisioned to the user. When true (default), provisioned plans are persisted in the user profile.

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

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ *

When false, prevents storing the list of service plans provisioned to the user. When true (default), provisioned plans are persisted in the user profile.

*/ - @JsonSetter(value = "ext_nested_groups", nulls = Nulls.SKIP) - public Builder extNestedGroups(Optional extNestedGroups) { - this.extNestedGroups = extNestedGroups; + @java.lang.Override + @JsonSetter(value = "ext_provisioned_plans", nulls = Nulls.SKIP) + public _FinalStage extProvisionedPlans(Optional extProvisionedPlans) { + this.extProvisionedPlans = extProvisionedPlans; return this; } - public Builder extNestedGroups(Boolean extNestedGroups) { - this.extNestedGroups = Optional.ofNullable(extNestedGroups); + @java.lang.Override + public _FinalStage extProfile(Boolean extProfile) { + this.extProfile = Optional.ofNullable(extProfile); return this; } - /** - *

When false, prevents storing the user's nickname or display name from Azure AD. When true (default), nickname is persisted in the user profile.

- */ - @JsonSetter(value = "ext_nickname", nulls = Nulls.SKIP) - public Builder extNickname(Optional extNickname) { - this.extNickname = extNickname; + @java.lang.Override + @JsonSetter(value = "ext_profile", nulls = Nulls.SKIP) + public _FinalStage extProfile(Optional extProfile) { + this.extProfile = extProfile; return this; } - public Builder extNickname(Boolean extNickname) { - this.extNickname = Optional.ofNullable(extNickname); + /** + *

When false, prevents storing the user's preferred language from Azure AD. When true (default), language preference is persisted in the user profile.

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

When false, prevents storing the user's Object ID (oid) from Azure AD. When true (default), the oid is persisted. Note: 'oid' is the recommended unique identifier for single-tenant connections and required for SCIM.

+ *

When false, prevents storing the user's preferred language from Azure AD. When true (default), language preference is persisted in the user profile.

*/ - @JsonSetter(value = "ext_oid", nulls = Nulls.SKIP) - public Builder extOid(Optional extOid) { - this.extOid = extOid; + @java.lang.Override + @JsonSetter(value = "ext_preferred_language", nulls = Nulls.SKIP) + public _FinalStage extPreferredLanguage(Optional extPreferredLanguage) { + this.extPreferredLanguage = extPreferredLanguage; return this; } - public Builder extOid(Boolean extOid) { - this.extOid = Optional.ofNullable(extOid); + /** + *

When false, prevents storing the user's postal code from Azure AD. When true (default), postal code is persisted in the user profile.

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

When false, prevents storing the user's phone number from Azure AD. When true (default), phone number is persisted in the user profile.

+ *

When false, prevents storing the user's postal code from Azure AD. When true (default), postal code is persisted in the user profile.

*/ - @JsonSetter(value = "ext_phone", nulls = Nulls.SKIP) - public Builder extPhone(Optional extPhone) { - this.extPhone = extPhone; + @java.lang.Override + @JsonSetter(value = "ext_postal_code", nulls = Nulls.SKIP) + public _FinalStage extPostalCode(Optional extPostalCode) { + this.extPostalCode = extPostalCode; return this; } - public Builder extPhone(Boolean extPhone) { - this.extPhone = Optional.ofNullable(extPhone); + /** + *

When false, prevents storing the user's office location from Azure AD. When true (default), office location is persisted in the user profile.

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

When false, prevents storing the user's office location from Azure AD. When true (default), office location is persisted in the user profile.

*/ + @java.lang.Override @JsonSetter(value = "ext_physical_delivery_office_name", nulls = Nulls.SKIP) - public Builder extPhysicalDeliveryOfficeName(Optional extPhysicalDeliveryOfficeName) { + public _FinalStage extPhysicalDeliveryOfficeName(Optional extPhysicalDeliveryOfficeName) { this.extPhysicalDeliveryOfficeName = extPhysicalDeliveryOfficeName; return this; } - public Builder extPhysicalDeliveryOfficeName(Boolean extPhysicalDeliveryOfficeName) { - this.extPhysicalDeliveryOfficeName = Optional.ofNullable(extPhysicalDeliveryOfficeName); - return this; - } - /** - *

When false, prevents storing the user's postal code from Azure AD. When true (default), postal code is persisted in the user profile.

+ *

When false, prevents storing the user's phone number from Azure AD. When true (default), phone number is persisted in the user profile.

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "ext_postal_code", nulls = Nulls.SKIP) - public Builder extPostalCode(Optional extPostalCode) { - this.extPostalCode = extPostalCode; + @java.lang.Override + public _FinalStage extPhone(Boolean extPhone) { + this.extPhone = Optional.ofNullable(extPhone); return this; } - public Builder extPostalCode(Boolean extPostalCode) { - this.extPostalCode = Optional.ofNullable(extPostalCode); + /** + *

When false, prevents storing the user's phone number from Azure AD. When true (default), phone number is persisted in the user profile.

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

When false, prevents storing the user's preferred language from Azure AD. When true (default), language preference is persisted in the user profile.

+ *

When false, prevents storing the user's Object ID (oid) from Azure AD. When true (default), the oid is persisted. Note: 'oid' is the recommended unique identifier for single-tenant connections and required for SCIM.

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "ext_preferred_language", nulls = Nulls.SKIP) - public Builder extPreferredLanguage(Optional extPreferredLanguage) { - this.extPreferredLanguage = extPreferredLanguage; + @java.lang.Override + public _FinalStage extOid(Boolean extOid) { + this.extOid = Optional.ofNullable(extOid); return this; } - public Builder extPreferredLanguage(Boolean extPreferredLanguage) { - this.extPreferredLanguage = Optional.ofNullable(extPreferredLanguage); + /** + *

When false, prevents storing the user's Object ID (oid) from Azure AD. When true (default), the oid is persisted. Note: 'oid' is the recommended unique identifier for single-tenant connections and required for SCIM.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_oid", nulls = Nulls.SKIP) + public _FinalStage extOid(Optional extOid) { + this.extOid = extOid; return this; } - @JsonSetter(value = "ext_profile", nulls = Nulls.SKIP) - public Builder extProfile(Optional extProfile) { - this.extProfile = extProfile; + /** + *

When false, prevents storing the user's nickname or display name from Azure AD. When true (default), nickname is persisted in the user profile.

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

When false, prevents storing the user's nickname or display name from Azure AD. When true (default), nickname is persisted in the user profile.

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

When false, prevents storing the list of service plans provisioned to the user. When true (default), provisioned plans are persisted in the user profile.

+ *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "ext_provisioned_plans", nulls = Nulls.SKIP) - public Builder extProvisionedPlans(Optional extProvisionedPlans) { - this.extProvisionedPlans = extProvisionedPlans; + @java.lang.Override + public _FinalStage extNestedGroups(Boolean extNestedGroups) { + this.extNestedGroups = Optional.ofNullable(extNestedGroups); return this; } - public Builder extProvisionedPlans(Boolean extProvisionedPlans) { - this.extProvisionedPlans = Optional.ofNullable(extProvisionedPlans); + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

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

When false, prevents storing provisioning errors that occurred during synchronization. When true (default), error information is persisted. Useful for troubleshooting sync issues.

+ *

When false, prevents storing the user's full name from Azure AD. When true (default), full name is persisted in the user profile.

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "ext_provisioning_errors", nulls = Nulls.SKIP) - public Builder extProvisioningErrors(Optional extProvisioningErrors) { - this.extProvisioningErrors = extProvisioningErrors; + @java.lang.Override + public _FinalStage extName(Boolean extName) { + this.extName = Optional.ofNullable(extName); return this; } - public Builder extProvisioningErrors(Boolean extProvisioningErrors) { - this.extProvisioningErrors = Optional.ofNullable(extProvisioningErrors); + /** + *

When false, prevents storing the user's full name from Azure AD. When true (default), full name is persisted in the user profile.

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

When false, prevents storing all proxy email addresses (email aliases) for the user. When true (default), proxy addresses are persisted in the user profile.

+ *

When false, prevents storing the user's mobile phone number from Azure AD. When true (default), mobile number is persisted in the user profile.

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "ext_proxy_addresses", nulls = Nulls.SKIP) - public Builder extProxyAddresses(Optional extProxyAddresses) { - this.extProxyAddresses = extProxyAddresses; + @java.lang.Override + public _FinalStage extMobile(Boolean extMobile) { + this.extMobile = Optional.ofNullable(extMobile); return this; } - public Builder extProxyAddresses(Boolean extProxyAddresses) { - this.extProxyAddresses = Optional.ofNullable(extProxyAddresses); + /** + *

When false, prevents storing the user's mobile phone number from Azure AD. When true (default), mobile number is persisted in the user profile.

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

When false, prevents storing the user's Passport User ID (puid). When true (default), puid is persisted in the user profile. Legacy attribute.

+ *

When false, prevents storing the timestamp of the last directory synchronization. When true (default), the last sync date is persisted in the user profile.

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "ext_puid", nulls = Nulls.SKIP) - public Builder extPuid(Optional extPuid) { - this.extPuid = extPuid; + @java.lang.Override + public _FinalStage extLastSync(Boolean extLastSync) { + this.extLastSync = Optional.ofNullable(extLastSync); return this; } - public Builder extPuid(Boolean extPuid) { - this.extPuid = Optional.ofNullable(extPuid); + /** + *

When false, prevents storing the timestamp of the last directory synchronization. When true (default), the last sync date is persisted in the user profile.

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

When false, prevents storing the Azure AD refresh token. When true (default), the refresh token is persisted for offline access. Required for token refresh in long-lived applications.

+ *

When false, prevents storing the user's job title from Azure AD. When true (default), job title information is persisted in the user profile.

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "ext_refresh_token", nulls = Nulls.SKIP) - public Builder extRefreshToken(Optional extRefreshToken) { - this.extRefreshToken = extRefreshToken; + @java.lang.Override + public _FinalStage extJobTitle(Boolean extJobTitle) { + this.extJobTitle = Optional.ofNullable(extJobTitle); return this; } - public Builder extRefreshToken(Boolean extRefreshToken) { - this.extRefreshToken = Optional.ofNullable(extRefreshToken); + /** + *

When false, prevents storing the user's job title from Azure AD. When true (default), job title information is persisted in the user profile.

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

When false, prevents storing Azure AD application roles assigned to the user. When true (default), role information is persisted. Useful for RBAC in applications.

- */ - @JsonSetter(value = "ext_roles", nulls = Nulls.SKIP) - public Builder extRoles(Optional extRoles) { - this.extRoles = extRoles; + @java.lang.Override + public _FinalStage extIsSuspended(Boolean extIsSuspended) { + this.extIsSuspended = Optional.ofNullable(extIsSuspended); return this; } - public Builder extRoles(Boolean extRoles) { - this.extRoles = Optional.ofNullable(extRoles); + @java.lang.Override + @JsonSetter(value = "ext_is_suspended", nulls = Nulls.SKIP) + public _FinalStage extIsSuspended(Optional extIsSuspended) { + this.extIsSuspended = extIsSuspended; return this; } - /** - *

When false, prevents storing the user's state (province/region) from Azure AD. When true (default), state information is persisted in the user profile.

- */ - @JsonSetter(value = "ext_state", nulls = Nulls.SKIP) - public Builder extState(Optional extState) { - this.extState = extState; + @java.lang.Override + public _FinalStage extGroups(Boolean extGroups) { + this.extGroups = Optional.ofNullable(extGroups); return this; } - public Builder extState(Boolean extState) { - this.extState = Optional.ofNullable(extState); + @java.lang.Override + @JsonSetter(value = "ext_groups", nulls = Nulls.SKIP) + public _FinalStage extGroups(Optional extGroups) { + this.extGroups = extGroups; return this; } /** - *

When false, prevents storing the user's street address from Azure AD. When true (default), street address is persisted in the user profile.

+ *

When false, prevents storing the list of Azure AD group IDs the user is a member of. When true (default), group membership IDs are persisted. See ext_groups for retrieving group details.

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "ext_street", nulls = Nulls.SKIP) - public Builder extStreet(Optional extStreet) { - this.extStreet = extStreet; + @java.lang.Override + public _FinalStage extGroupIds(Boolean extGroupIds) { + this.extGroupIds = Optional.ofNullable(extGroupIds); return this; } - public Builder extStreet(Boolean extStreet) { - this.extStreet = Optional.ofNullable(extStreet); + /** + *

When false, prevents storing the list of Azure AD group IDs the user is a member of. When true (default), group membership IDs are persisted. See ext_groups for retrieving group details.

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

When false, prevents storing the user's telephone number from Azure AD. When true (default), telephone number is persisted in the user profile.

+ *

When false, prevents storing the user's given name (first name) from Azure AD. When true (default), given name is persisted in the user profile.

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "ext_telephoneNumber", nulls = Nulls.SKIP) - public Builder extTelephoneNumber(Optional extTelephoneNumber) { - this.extTelephoneNumber = extTelephoneNumber; + @java.lang.Override + public _FinalStage extGivenName(Boolean extGivenName) { + this.extGivenName = Optional.ofNullable(extGivenName); return this; } - public Builder extTelephoneNumber(Boolean extTelephoneNumber) { - this.extTelephoneNumber = Optional.ofNullable(extTelephoneNumber); + /** + *

When false, prevents storing the user's given name (first name) from Azure AD. When true (default), given name is persisted in the user profile.

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

When false, prevents storing the user's Azure AD tenant ID. When true (default), tenant ID is persisted. Useful for identifying which Azure AD organization the user belongs to.

+ *

When false, prevents storing the user's fax number from Azure AD. When true (default), fax information is persisted in the user profile.

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "ext_tenantid", nulls = Nulls.SKIP) - public Builder extTenantid(Optional extTenantid) { - this.extTenantid = extTenantid; + @java.lang.Override + public _FinalStage extFax(Boolean extFax) { + this.extFax = Optional.ofNullable(extFax); return this; } - public Builder extTenantid(Boolean extTenantid) { - this.extTenantid = Optional.ofNullable(extTenantid); + /** + *

When false, prevents storing the user's fax number from Azure AD. When true (default), fax information is persisted in the user profile.

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

When false, prevents storing the user's User Principal Name (UPN) from Azure AD. When true (default), UPN is persisted. UPN is the user's logon name (e.g., user@contoso.com).

+ *

When false, prevents storing the user's family name (last name) from Azure AD. When true (default), family name is persisted in the user profile.

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "ext_upn", nulls = Nulls.SKIP) - public Builder extUpn(Optional extUpn) { - this.extUpn = extUpn; + @java.lang.Override + public _FinalStage extFamilyName(Boolean extFamilyName) { + this.extFamilyName = Optional.ofNullable(extFamilyName); return this; } - public Builder extUpn(Boolean extUpn) { - this.extUpn = Optional.ofNullable(extUpn); + /** + *

When false, prevents storing the user's family name (last name) from Azure AD. When true (default), family name is persisted in the user profile.

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

When false, prevents storing the user's usage location for license assignment. When true (default), usage location is persisted in the user profile.

+ *

When false, prevents storing the token expiration time (in seconds). When true (default), expiration information is persisted in the user profile.

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "ext_usage_location", nulls = Nulls.SKIP) - public Builder extUsageLocation(Optional extUsageLocation) { - this.extUsageLocation = extUsageLocation; + @java.lang.Override + public _FinalStage extExpiresIn(Boolean extExpiresIn) { + this.extExpiresIn = Optional.ofNullable(extExpiresIn); return this; } - public Builder extUsageLocation(Boolean extUsageLocation) { - this.extUsageLocation = Optional.ofNullable(extUsageLocation); + /** + *

When false, prevents storing the token expiration time (in seconds). When true (default), expiration information is persisted in the user profile.

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

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

+ *

When false, prevents storing the user's email address from Azure AD. When true (default), email is persisted in the user profile.

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "ext_user_id", nulls = Nulls.SKIP) - public Builder extUserId(Optional extUserId) { - this.extUserId = extUserId; + @java.lang.Override + public _FinalStage extEmail(Boolean extEmail) { + this.extEmail = Optional.ofNullable(extEmail); return this; } - public Builder extUserId(Boolean extUserId) { - this.extUserId = Optional.ofNullable(extUserId); + /** + *

When false, prevents storing the user's email address from Azure AD. When true (default), email is persisted in the user profile.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_email", nulls = Nulls.SKIP) + public _FinalStage extEmail(Optional extEmail) { + this.extEmail = extEmail; return this; } - @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) - public Builder federatedConnectionsAccessTokens( - @Nullable - OptionalNullable federatedConnectionsAccessTokens) { - this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + /** + *

When false, prevents storing whether directory synchronization is enabled for the user. When true (default), directory sync status is persisted in the user profile.

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

When false, prevents storing whether directory synchronization is enabled for the user. When true (default), directory sync status is persisted in the user profile.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_dir_sync_enabled", nulls = Nulls.SKIP) + public _FinalStage extDirSyncEnabled(Optional extDirSyncEnabled) { + this.extDirSyncEnabled = extDirSyncEnabled; return this; } - public Builder federatedConnectionsAccessTokens( - Optional federatedConnectionsAccessTokens) { - if (federatedConnectionsAccessTokens.isPresent()) { - this.federatedConnectionsAccessTokens = OptionalNullable.of(federatedConnectionsAccessTokens.get()); - } else { - this.federatedConnectionsAccessTokens = OptionalNullable.absent(); - } + /** + *

When false, prevents storing the user's department from Azure AD. When true (default), department information is persisted in the user profile.

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

When false, prevents storing the user's department from Azure AD. When true (default), department information is persisted in the user profile.

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

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

+ *

When false, prevents storing the user's country from Azure AD. When true (default), country information is persisted in the user profile.

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "granted", nulls = Nulls.SKIP) - public Builder granted(Optional granted) { - this.granted = granted; + @java.lang.Override + public _FinalStage extCountry(Boolean extCountry) { + this.extCountry = Optional.ofNullable(extCountry); return this; } - public Builder granted(Boolean granted) { - this.granted = Optional.ofNullable(granted); + /** + *

When false, prevents storing the user's country from Azure AD. When true (default), country information is persisted in the user profile.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_country", nulls = Nulls.SKIP) + public _FinalStage extCountry(Optional extCountry) { + this.extCountry = extCountry; return this; } - @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) - public Builder iconUrl(Optional iconUrl) { - this.iconUrl = iconUrl; + /** + *

When false, prevents storing the user's city from Azure AD. When true (default), city information is persisted in the user profile.

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

When false, prevents storing the user's city from Azure AD. When true (default), city information is persisted in the user profile.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_city", nulls = Nulls.SKIP) + public _FinalStage extCity(Optional extCity) { + this.extCity = extCity; return this; } - @JsonSetter(value = "identity_api", nulls = Nulls.SKIP) - public Builder identityApi(Optional identityApi) { - this.identityApi = identityApi; + /** + *

When false, prevents storing the user's Azure ID identifier. When true (default), the Azure ID is persisted. Note: 'oid' (Object ID) is the recommended unique identifier for single-tenant connections.

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

When false, prevents storing the user's Azure ID identifier. When true (default), the Azure ID is persisted. Note: 'oid' (Object ID) is the recommended unique identifier for single-tenant connections.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_azure_id", nulls = Nulls.SKIP) + public _FinalStage extAzureId(Optional extAzureId) { + this.extAzureId = extAzureId; return this; } - @JsonSetter(value = "max_groups_to_retrieve", nulls = Nulls.SKIP) - public Builder maxGroupsToRetrieve(Optional maxGroupsToRetrieve) { - this.maxGroupsToRetrieve = maxGroupsToRetrieve; + @java.lang.Override + public _FinalStage extAssignedPlans(Boolean extAssignedPlans) { + this.extAssignedPlans = Optional.ofNullable(extAssignedPlans); return this; } - public Builder maxGroupsToRetrieve(String maxGroupsToRetrieve) { - this.maxGroupsToRetrieve = Optional.ofNullable(maxGroupsToRetrieve); + @java.lang.Override + @JsonSetter(value = "ext_assigned_plans", nulls = Nulls.SKIP) + public _FinalStage extAssignedPlans(Optional extAssignedPlans) { + this.extAssignedPlans = extAssignedPlans; return this; } - @JsonSetter(value = "scope", nulls = Nulls.SKIP) - public Builder scope(Optional> scope) { - this.scope = scope; + /** + *

When false, prevents storing the list of Microsoft 365/Office 365 licenses assigned to the user. When true (default), license information is persisted in the user profile.

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

When false, prevents storing the list of Microsoft 365/Office 365 licenses assigned to the user. When true (default), license information is persisted in the user profile.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_assigned_licenses", nulls = Nulls.SKIP) + public _FinalStage extAssignedLicenses(Optional extAssignedLicenses) { + this.extAssignedLicenses = extAssignedLicenses; return this; } - @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) - public Builder setUserRootAttributes(Optional setUserRootAttributes) { - this.setUserRootAttributes = setUserRootAttributes; + @java.lang.Override + public _FinalStage extAgreedTerms(Boolean extAgreedTerms) { + this.extAgreedTerms = Optional.ofNullable(extAgreedTerms); return this; } - public Builder setUserRootAttributes(ConnectionSetUserRootAttributesEnum setUserRootAttributes) { - this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + @java.lang.Override + @JsonSetter(value = "ext_agreed_terms", nulls = Nulls.SKIP) + public _FinalStage extAgreedTerms(Optional extAgreedTerms) { + this.extAgreedTerms = extAgreedTerms; return this; } - @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) - public Builder shouldTrustEmailVerifiedConnection( - Optional shouldTrustEmailVerifiedConnection) { - this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + @java.lang.Override + public _FinalStage extAdmin(Boolean extAdmin) { + this.extAdmin = Optional.ofNullable(extAdmin); return this; } - public Builder shouldTrustEmailVerifiedConnection( - ConnectionShouldTrustEmailVerifiedConnectionEnum shouldTrustEmailVerifiedConnection) { - this.shouldTrustEmailVerifiedConnection = Optional.ofNullable(shouldTrustEmailVerifiedConnection); + @java.lang.Override + @JsonSetter(value = "ext_admin", nulls = Nulls.SKIP) + public _FinalStage extAdmin(Optional extAdmin) { + this.extAdmin = extAdmin; return this; } - @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) - public Builder tenantDomain(Optional tenantDomain) { - this.tenantDomain = tenantDomain; + /** + *

When false, prevents storing whether the user's Azure AD account is enabled. When true (default), the account enabled status is persisted in the user profile.

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

When false, prevents storing whether the user's Azure AD account is enabled. When true (default), the account enabled status is persisted in the user profile.

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

When false, prevents storing the user's Azure AD access token in the Auth0 user profile. When true (default), the access token is persisted for API access.

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

When false, prevents storing the user's Azure AD access token in the Auth0 user profile. When true (default), the access token is persisted for API access.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_access_token", nulls = Nulls.SKIP) + public _FinalStage extAccessToken(Optional extAccessToken) { + this.extAccessToken = extAccessToken; return this; } - @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) - public Builder thumbprints(Optional> thumbprints) { - this.thumbprints = thumbprints; + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); return this; } - public Builder thumbprints(List thumbprints) { - this.thumbprints = Optional.ofNullable(thumbprints); + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; return this; } - @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) - public Builder upstreamParams( - @Nullable - OptionalNullable>> - upstreamParams) { - this.upstreamParams = upstreamParams; + @java.lang.Override + public _FinalStage clientSecret(String clientSecret) { + this.clientSecret = Optional.ofNullable(clientSecret); return this; } - public Builder upstreamParams( - Map> upstreamParams) { - this.upstreamParams = OptionalNullable.of(upstreamParams); + @java.lang.Override + @JsonSetter(value = "client_secret", nulls = Nulls.SKIP) + public _FinalStage clientSecret(Optional clientSecret) { + this.clientSecret = clientSecret; return this; } - public Builder upstreamParams( - Optional>> upstreamParams) { - if (upstreamParams.isPresent()) { - this.upstreamParams = OptionalNullable.of(upstreamParams.get()); - } else { - this.upstreamParams = OptionalNullable.absent(); - } + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage basicProfile(Boolean basicProfile) { + this.basicProfile = Optional.ofNullable(basicProfile); 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()); - } + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

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

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ * @return Reference to {@code this} so that method calls can be chained together. */ - @JsonSetter(value = "use_wsfed", nulls = Nulls.SKIP) - public Builder useWsfed(Optional useWsfed) { - this.useWsfed = useWsfed; + @java.lang.Override + public _FinalStage appId(String appId) { + this.appId = Optional.ofNullable(appId); return this; } - public Builder useWsfed(Boolean useWsfed) { - this.useWsfed = Optional.ofNullable(useWsfed); + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ */ + @java.lang.Override + @JsonSetter(value = "app_id", nulls = Nulls.SKIP) + public _FinalStage appId(Optional appId) { + this.appId = appId; return this; } - @JsonSetter(value = "useCommonEndpoint", nulls = Nulls.SKIP) - public Builder useCommonEndpoint(Optional useCommonEndpoint) { - this.useCommonEndpoint = useCommonEndpoint; + @java.lang.Override + public _FinalStage appDomain(String appDomain) { + this.appDomain = Optional.ofNullable(appDomain); return this; } - public Builder useCommonEndpoint(Boolean useCommonEndpoint) { - this.useCommonEndpoint = Optional.ofNullable(useCommonEndpoint); + @java.lang.Override + @JsonSetter(value = "app_domain", nulls = Nulls.SKIP) + public _FinalStage appDomain(Optional appDomain) { + this.appDomain = appDomain; return this; } - @JsonSetter(value = "userid_attribute", nulls = Nulls.SKIP) - public Builder useridAttribute(Optional useridAttribute) { - this.useridAttribute = useridAttribute; + /** + *

Enable users API

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

Enable users API

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_users", nulls = Nulls.SKIP) + public _FinalStage apiEnableUsers(Optional apiEnableUsers) { + this.apiEnableUsers = apiEnableUsers; return this; } - @JsonSetter(value = "waad_protocol", nulls = Nulls.SKIP) - public Builder waadProtocol(Optional waadProtocol) { - this.waadProtocol = waadProtocol; + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); return this; } - public Builder waadProtocol(ConnectionWaadProtocolEnumAzureAd waadProtocol) { - this.waadProtocol = Optional.ofNullable(waadProtocol); + @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 ConnectionOptionsAzureAd build() { return new ConnectionOptionsAzureAd( nonPersistentAttrs, @@ -2183,11 +2927,13 @@ public ConnectionOptionsAzureAd build() { additionalProperties); } + @java.lang.Override public Builder additionalProperty(String key, Object value) { this.additionalProperties.put(key, value); return this; } + @java.lang.Override public Builder additionalProperties(Map additionalProperties) { this.additionalProperties.putAll(additionalProperties); return this; diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java index 46a055635..0c5874440 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java @@ -35,8 +35,6 @@ public final class ConnectionOptionsCommonOidc implements IConnectionOptionsComm private final Optional> domainAliases; - private final Optional dpopSigningAlg; - private final OptionalNullable federatedConnectionsAccessTokens; private final Optional iconUrl; @@ -76,7 +74,6 @@ private ConnectionOptionsCommonOidc( Optional clientSecret, Optional connectionSettings, Optional> domainAliases, - Optional dpopSigningAlg, OptionalNullable federatedConnectionsAccessTokens, Optional iconUrl, OptionalNullable> idTokenSignedResponseAlgs, @@ -98,7 +95,6 @@ private ConnectionOptionsCommonOidc( this.clientSecret = clientSecret; this.connectionSettings = connectionSettings; this.domainAliases = domainAliases; - this.dpopSigningAlg = dpopSigningAlg; this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.iconUrl = iconUrl; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; @@ -147,12 +143,6 @@ public Optional> getDomainAliases() { return domainAliases; } - @JsonProperty("dpop_signing_alg") - @java.lang.Override - public Optional getDpopSigningAlg() { - return dpopSigningAlg; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("federated_connections_access_tokens") @java.lang.Override @@ -311,7 +301,6 @@ private boolean equalTo(ConnectionOptionsCommonOidc other) { && clientSecret.equals(other.clientSecret) && connectionSettings.equals(other.connectionSettings) && domainAliases.equals(other.domainAliases) - && dpopSigningAlg.equals(other.dpopSigningAlg) && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && iconUrl.equals(other.iconUrl) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) @@ -337,7 +326,6 @@ public int hashCode() { this.clientSecret, this.connectionSettings, this.domainAliases, - this.dpopSigningAlg, this.federatedConnectionsAccessTokens, this.iconUrl, this.idTokenSignedResponseAlgs, @@ -393,10 +381,6 @@ public interface _FinalStage { _FinalStage domainAliases(List domainAliases); - _FinalStage dpopSigningAlg(Optional dpopSigningAlg); - - _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg); - _FinalStage federatedConnectionsAccessTokens( @Nullable OptionalNullable federatedConnectionsAccessTokens); @@ -541,8 +525,6 @@ public static final class Builder implements ClientIdStage, _FinalStage { private OptionalNullable federatedConnectionsAccessTokens = OptionalNullable.absent(); - private Optional dpopSigningAlg = Optional.empty(); - private Optional> domainAliases = Optional.empty(); private Optional connectionSettings = Optional.empty(); @@ -563,7 +545,6 @@ public Builder from(ConnectionOptionsCommonOidc other) { clientSecret(other.getClientSecret()); connectionSettings(other.getConnectionSettings()); domainAliases(other.getDomainAliases()); - dpopSigningAlg(other.getDpopSigningAlg()); federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); iconUrl(other.getIconUrl()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); @@ -921,19 +902,6 @@ public _FinalStage federatedConnectionsAccessTokens( return this; } - @java.lang.Override - public _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) { - this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); - return this; - } - - @java.lang.Override - @JsonSetter(value = "dpop_signing_alg", nulls = Nulls.SKIP) - public _FinalStage dpopSigningAlg(Optional dpopSigningAlg) { - this.dpopSigningAlg = dpopSigningAlg; - return this; - } - @java.lang.Override public _FinalStage domainAliases(List domainAliases) { this.domainAliases = Optional.ofNullable(domainAliases); @@ -994,7 +962,6 @@ public ConnectionOptionsCommonOidc build() { clientSecret, connectionSettings, domainAliases, - dpopSigningAlg, federatedConnectionsAccessTokens, iconUrl, idTokenSignedResponseAlgs, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java index a2646f050..63abb2625 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java @@ -36,6 +36,8 @@ public final class ConnectionOptionsGoogleApps implements IConnectionOptionsComm private final Optional allowSettingLoginScopes; + private final Optional apiEnableGroups; + private final Optional apiEnableUsers; private final String clientId; @@ -85,6 +87,7 @@ private ConnectionOptionsGoogleApps( Optional adminAccessTokenExpiresin, Optional adminRefreshToken, Optional allowSettingLoginScopes, + Optional apiEnableGroups, Optional apiEnableUsers, String clientId, Optional clientSecret, @@ -111,6 +114,7 @@ private ConnectionOptionsGoogleApps( this.adminAccessTokenExpiresin = adminAccessTokenExpiresin; this.adminRefreshToken = adminRefreshToken; this.allowSettingLoginScopes = allowSettingLoginScopes; + this.apiEnableGroups = apiEnableGroups; this.apiEnableUsers = apiEnableUsers; this.clientId = clientId; this.clientSecret = clientSecret; @@ -163,6 +167,11 @@ public Optional getAllowSettingLoginScopes() { return allowSettingLoginScopes; } + @JsonProperty("api_enable_groups") + public Optional getApiEnableGroups() { + return apiEnableGroups; + } + @JsonProperty("api_enable_users") public Optional getApiEnableUsers() { return apiEnableUsers; @@ -313,6 +322,7 @@ private boolean equalTo(ConnectionOptionsGoogleApps other) { && adminAccessTokenExpiresin.equals(other.adminAccessTokenExpiresin) && adminRefreshToken.equals(other.adminRefreshToken) && allowSettingLoginScopes.equals(other.allowSettingLoginScopes) + && apiEnableGroups.equals(other.apiEnableGroups) && apiEnableUsers.equals(other.apiEnableUsers) && clientId.equals(other.clientId) && clientSecret.equals(other.clientSecret) @@ -343,6 +353,7 @@ public int hashCode() { this.adminAccessTokenExpiresin, this.adminRefreshToken, this.allowSettingLoginScopes, + this.apiEnableGroups, this.apiEnableUsers, this.clientId, this.clientSecret, @@ -410,6 +421,10 @@ public interface _FinalStage { _FinalStage allowSettingLoginScopes(Boolean allowSettingLoginScopes); + _FinalStage apiEnableGroups(Optional apiEnableGroups); + + _FinalStage apiEnableGroups(Boolean apiEnableGroups); + _FinalStage apiEnableUsers(Optional apiEnableUsers); _FinalStage apiEnableUsers(Boolean apiEnableUsers); @@ -565,6 +580,8 @@ public static final class Builder implements ClientIdStage, _FinalStage { private Optional apiEnableUsers = Optional.empty(); + private Optional apiEnableGroups = Optional.empty(); + private Optional allowSettingLoginScopes = Optional.empty(); private Optional adminRefreshToken = Optional.empty(); @@ -587,6 +604,7 @@ public Builder from(ConnectionOptionsGoogleApps other) { adminAccessTokenExpiresin(other.getAdminAccessTokenExpiresin()); adminRefreshToken(other.getAdminRefreshToken()); allowSettingLoginScopes(other.getAllowSettingLoginScopes()); + apiEnableGroups(other.getApiEnableGroups()); apiEnableUsers(other.getApiEnableUsers()); clientId(other.getClientId()); clientSecret(other.getClientSecret()); @@ -950,6 +968,19 @@ public _FinalStage apiEnableUsers(Optional apiEnableUsers) { return this; } + @java.lang.Override + public _FinalStage apiEnableGroups(Boolean apiEnableGroups) { + this.apiEnableGroups = Optional.ofNullable(apiEnableGroups); + return this; + } + + @java.lang.Override + @JsonSetter(value = "api_enable_groups", nulls = Nulls.SKIP) + public _FinalStage apiEnableGroups(Optional apiEnableGroups) { + this.apiEnableGroups = apiEnableGroups; + return this; + } + /** *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

* @return Reference to {@code this} so that method calls can be chained together. @@ -1030,6 +1061,7 @@ public ConnectionOptionsGoogleApps build() { adminAccessTokenExpiresin, adminRefreshToken, allowSettingLoginScopes, + apiEnableGroups, apiEnableUsers, clientId, clientSecret, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsMiicard.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsMiicard.java deleted file mode 100644 index 2b3f7a88c..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsMiicard.java +++ /dev/null @@ -1,291 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.NullableNonemptyFilter; -import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSetter; -import com.fasterxml.jackson.annotation.Nulls; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import java.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 = ConnectionOptionsMiicard.Builder.class) -public final class ConnectionOptionsMiicard implements IConnectionOptionsOAuth2Common, IConnectionOptionsCommon { - private final Optional clientId; - - private final Optional clientSecret; - - private final Optional scope; - - private final Optional setUserRootAttributes; - - private final OptionalNullable>> - upstreamParams; - - private final Optional> nonPersistentAttrs; - - private final Map additionalProperties; - - private ConnectionOptionsMiicard( - Optional clientId, - Optional clientSecret, - Optional scope, - Optional setUserRootAttributes, - OptionalNullable>> upstreamParams, - Optional> nonPersistentAttrs, - Map additionalProperties) { - this.clientId = clientId; - this.clientSecret = clientSecret; - this.scope = scope; - this.setUserRootAttributes = setUserRootAttributes; - this.upstreamParams = upstreamParams; - this.nonPersistentAttrs = nonPersistentAttrs; - this.additionalProperties = additionalProperties; - } - - @JsonProperty("client_id") - @java.lang.Override - public Optional getClientId() { - return clientId; - } - - @JsonProperty("client_secret") - @java.lang.Override - public Optional getClientSecret() { - return clientSecret; - } - - @JsonProperty("scope") - @java.lang.Override - public Optional getScope() { - return scope; - } - - @JsonProperty("set_user_root_attributes") - @java.lang.Override - public Optional getSetUserRootAttributes() { - return setUserRootAttributes; - } - - @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; - } - - @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 ConnectionOptionsMiicard && equalTo((ConnectionOptionsMiicard) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(ConnectionOptionsMiicard other) { - return clientId.equals(other.clientId) - && clientSecret.equals(other.clientSecret) - && scope.equals(other.scope) - && setUserRootAttributes.equals(other.setUserRootAttributes) - && upstreamParams.equals(other.upstreamParams) - && nonPersistentAttrs.equals(other.nonPersistentAttrs); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash( - this.clientId, - this.clientSecret, - this.scope, - this.setUserRootAttributes, - this.upstreamParams, - this.nonPersistentAttrs); - } - - @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 clientId = Optional.empty(); - - private Optional clientSecret = Optional.empty(); - - private Optional scope = Optional.empty(); - - private Optional setUserRootAttributes = Optional.empty(); - - private OptionalNullable>> upstreamParams = - OptionalNullable.absent(); - - private Optional> nonPersistentAttrs = Optional.empty(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - public Builder from(ConnectionOptionsMiicard other) { - clientId(other.getClientId()); - clientSecret(other.getClientSecret()); - scope(other.getScope()); - setUserRootAttributes(other.getSetUserRootAttributes()); - upstreamParams(other.getUpstreamParams()); - nonPersistentAttrs(other.getNonPersistentAttrs()); - return this; - } - - @JsonSetter(value = "client_id", nulls = Nulls.SKIP) - public Builder clientId(Optional clientId) { - this.clientId = clientId; - return this; - } - - public Builder clientId(String clientId) { - this.clientId = Optional.ofNullable(clientId); - return this; - } - - @JsonSetter(value = "client_secret", nulls = Nulls.SKIP) - public Builder clientSecret(Optional clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - public Builder clientSecret(String clientSecret) { - this.clientSecret = Optional.ofNullable(clientSecret); - return this; - } - - @JsonSetter(value = "scope", nulls = Nulls.SKIP) - public Builder scope(Optional scope) { - this.scope = scope; - return this; - } - - public Builder scope(ConnectionScopeOAuth2 scope) { - this.scope = Optional.ofNullable(scope); - 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 = "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 nonPersistentAttrs(List nonPersistentAttrs) { - this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); - return this; - } - - public ConnectionOptionsMiicard build() { - return new ConnectionOptionsMiicard( - clientId, - clientSecret, - scope, - setUserRootAttributes, - upstreamParams, - nonPersistentAttrs, - additionalProperties); - } - - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java index 457cc8d09..35f3c9d76 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java @@ -35,8 +35,6 @@ public final class ConnectionOptionsOidc implements IConnectionOptionsCommonOidc private final Optional> domainAliases; - private final Optional dpopSigningAlg; - private final OptionalNullable federatedConnectionsAccessTokens; private final Optional iconUrl; @@ -84,7 +82,6 @@ private ConnectionOptionsOidc( Optional clientSecret, Optional connectionSettings, Optional> domainAliases, - Optional dpopSigningAlg, OptionalNullable federatedConnectionsAccessTokens, Optional iconUrl, OptionalNullable> idTokenSignedResponseAlgs, @@ -110,7 +107,6 @@ private ConnectionOptionsOidc( this.clientSecret = clientSecret; this.connectionSettings = connectionSettings; this.domainAliases = domainAliases; - this.dpopSigningAlg = dpopSigningAlg; this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.iconUrl = iconUrl; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; @@ -163,12 +159,6 @@ public Optional> getDomainAliases() { return domainAliases; } - @JsonProperty("dpop_signing_alg") - @java.lang.Override - public Optional getDpopSigningAlg() { - return dpopSigningAlg; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("federated_connections_access_tokens") @java.lang.Override @@ -348,7 +338,6 @@ private boolean equalTo(ConnectionOptionsOidc other) { && clientSecret.equals(other.clientSecret) && connectionSettings.equals(other.connectionSettings) && domainAliases.equals(other.domainAliases) - && dpopSigningAlg.equals(other.dpopSigningAlg) && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && iconUrl.equals(other.iconUrl) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) @@ -378,7 +367,6 @@ public int hashCode() { this.clientSecret, this.connectionSettings, this.domainAliases, - this.dpopSigningAlg, this.federatedConnectionsAccessTokens, this.iconUrl, this.idTokenSignedResponseAlgs, @@ -438,10 +426,6 @@ public interface _FinalStage { _FinalStage domainAliases(List domainAliases); - _FinalStage dpopSigningAlg(Optional dpopSigningAlg); - - _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg); - _FinalStage federatedConnectionsAccessTokens( @Nullable OptionalNullable federatedConnectionsAccessTokens); @@ -610,8 +594,6 @@ public static final class Builder implements ClientIdStage, _FinalStage { private OptionalNullable federatedConnectionsAccessTokens = OptionalNullable.absent(); - private Optional dpopSigningAlg = Optional.empty(); - private Optional> domainAliases = Optional.empty(); private Optional connectionSettings = Optional.empty(); @@ -632,7 +614,6 @@ public Builder from(ConnectionOptionsOidc other) { clientSecret(other.getClientSecret()); connectionSettings(other.getConnectionSettings()); domainAliases(other.getDomainAliases()); - dpopSigningAlg(other.getDpopSigningAlg()); federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); iconUrl(other.getIconUrl()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); @@ -1046,19 +1027,6 @@ public _FinalStage federatedConnectionsAccessTokens( return this; } - @java.lang.Override - public _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) { - this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); - return this; - } - - @java.lang.Override - @JsonSetter(value = "dpop_signing_alg", nulls = Nulls.SKIP) - public _FinalStage dpopSigningAlg(Optional dpopSigningAlg) { - this.dpopSigningAlg = dpopSigningAlg; - return this; - } - @java.lang.Override public _FinalStage domainAliases(List domainAliases) { this.domainAliases = Optional.ofNullable(domainAliases); @@ -1119,7 +1087,6 @@ public ConnectionOptionsOidc build() { clientSecret, connectionSettings, domainAliases, - dpopSigningAlg, federatedConnectionsAccessTokens, iconUrl, idTokenSignedResponseAlgs, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java index 376926cac..b25024bec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java @@ -37,8 +37,6 @@ public final class ConnectionOptionsOkta implements IConnectionOptionsCommon, IC private final Optional> domainAliases; - private final Optional dpopSigningAlg; - private final OptionalNullable federatedConnectionsAccessTokens; private final Optional iconUrl; @@ -85,7 +83,6 @@ private ConnectionOptionsOkta( Optional clientSecret, Optional connectionSettings, Optional> domainAliases, - Optional dpopSigningAlg, OptionalNullable federatedConnectionsAccessTokens, Optional iconUrl, OptionalNullable> idTokenSignedResponseAlgs, @@ -111,7 +108,6 @@ private ConnectionOptionsOkta( this.clientSecret = clientSecret; this.connectionSettings = connectionSettings; this.domainAliases = domainAliases; - this.dpopSigningAlg = dpopSigningAlg; this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; this.iconUrl = iconUrl; this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; @@ -169,12 +165,6 @@ public Optional> getDomainAliases() { return domainAliases; } - @JsonProperty("dpop_signing_alg") - @java.lang.Override - public Optional getDpopSigningAlg() { - return dpopSigningAlg; - } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("federated_connections_access_tokens") @java.lang.Override @@ -349,7 +339,6 @@ private boolean equalTo(ConnectionOptionsOkta other) { && clientSecret.equals(other.clientSecret) && connectionSettings.equals(other.connectionSettings) && domainAliases.equals(other.domainAliases) - && dpopSigningAlg.equals(other.dpopSigningAlg) && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) && iconUrl.equals(other.iconUrl) && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) @@ -379,7 +368,6 @@ public int hashCode() { this.clientSecret, this.connectionSettings, this.domainAliases, - this.dpopSigningAlg, this.federatedConnectionsAccessTokens, this.iconUrl, this.idTokenSignedResponseAlgs, @@ -442,10 +430,6 @@ public interface _FinalStage { _FinalStage domainAliases(List domainAliases); - _FinalStage dpopSigningAlg(Optional dpopSigningAlg); - - _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg); - _FinalStage federatedConnectionsAccessTokens( @Nullable OptionalNullable federatedConnectionsAccessTokens); @@ -608,8 +592,6 @@ public static final class Builder implements ClientIdStage, _FinalStage { private OptionalNullable federatedConnectionsAccessTokens = OptionalNullable.absent(); - private Optional dpopSigningAlg = Optional.empty(); - private Optional> domainAliases = Optional.empty(); private Optional connectionSettings = Optional.empty(); @@ -633,7 +615,6 @@ public Builder from(ConnectionOptionsOkta other) { clientSecret(other.getClientSecret()); connectionSettings(other.getConnectionSettings()); domainAliases(other.getDomainAliases()); - dpopSigningAlg(other.getDpopSigningAlg()); federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); iconUrl(other.getIconUrl()); idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); @@ -1033,19 +1014,6 @@ public _FinalStage federatedConnectionsAccessTokens( return this; } - @java.lang.Override - public _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) { - this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); - return this; - } - - @java.lang.Override - @JsonSetter(value = "dpop_signing_alg", nulls = Nulls.SKIP) - public _FinalStage dpopSigningAlg(Optional dpopSigningAlg) { - this.dpopSigningAlg = dpopSigningAlg; - return this; - } - @java.lang.Override public _FinalStage domainAliases(List domainAliases) { this.domainAliases = Optional.ofNullable(domainAliases); @@ -1120,7 +1088,6 @@ public ConnectionOptionsOkta build() { clientSecret, connectionSettings, domainAliases, - dpopSigningAlg, federatedConnectionsAccessTokens, iconUrl, idTokenSignedResponseAlgs, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsRenren.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsRenren.java deleted file mode 100644 index aec9b8ff9..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsRenren.java +++ /dev/null @@ -1,291 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.NullableNonemptyFilter; -import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSetter; -import com.fasterxml.jackson.annotation.Nulls; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import java.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 = ConnectionOptionsRenren.Builder.class) -public final class ConnectionOptionsRenren implements IConnectionOptionsOAuth2Common, IConnectionOptionsCommon { - private final Optional clientId; - - private final Optional clientSecret; - - private final Optional scope; - - private final Optional setUserRootAttributes; - - private final OptionalNullable>> - upstreamParams; - - private final Optional> nonPersistentAttrs; - - private final Map additionalProperties; - - private ConnectionOptionsRenren( - Optional clientId, - Optional clientSecret, - Optional scope, - Optional setUserRootAttributes, - OptionalNullable>> upstreamParams, - Optional> nonPersistentAttrs, - Map additionalProperties) { - this.clientId = clientId; - this.clientSecret = clientSecret; - this.scope = scope; - this.setUserRootAttributes = setUserRootAttributes; - this.upstreamParams = upstreamParams; - this.nonPersistentAttrs = nonPersistentAttrs; - this.additionalProperties = additionalProperties; - } - - @JsonProperty("client_id") - @java.lang.Override - public Optional getClientId() { - return clientId; - } - - @JsonProperty("client_secret") - @java.lang.Override - public Optional getClientSecret() { - return clientSecret; - } - - @JsonProperty("scope") - @java.lang.Override - public Optional getScope() { - return scope; - } - - @JsonProperty("set_user_root_attributes") - @java.lang.Override - public Optional getSetUserRootAttributes() { - return setUserRootAttributes; - } - - @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; - } - - @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 ConnectionOptionsRenren && equalTo((ConnectionOptionsRenren) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(ConnectionOptionsRenren other) { - return clientId.equals(other.clientId) - && clientSecret.equals(other.clientSecret) - && scope.equals(other.scope) - && setUserRootAttributes.equals(other.setUserRootAttributes) - && upstreamParams.equals(other.upstreamParams) - && nonPersistentAttrs.equals(other.nonPersistentAttrs); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash( - this.clientId, - this.clientSecret, - this.scope, - this.setUserRootAttributes, - this.upstreamParams, - this.nonPersistentAttrs); - } - - @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 clientId = Optional.empty(); - - private Optional clientSecret = Optional.empty(); - - private Optional scope = Optional.empty(); - - private Optional setUserRootAttributes = Optional.empty(); - - private OptionalNullable>> upstreamParams = - OptionalNullable.absent(); - - private Optional> nonPersistentAttrs = Optional.empty(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - public Builder from(ConnectionOptionsRenren other) { - clientId(other.getClientId()); - clientSecret(other.getClientSecret()); - scope(other.getScope()); - setUserRootAttributes(other.getSetUserRootAttributes()); - upstreamParams(other.getUpstreamParams()); - nonPersistentAttrs(other.getNonPersistentAttrs()); - return this; - } - - @JsonSetter(value = "client_id", nulls = Nulls.SKIP) - public Builder clientId(Optional clientId) { - this.clientId = clientId; - return this; - } - - public Builder clientId(String clientId) { - this.clientId = Optional.ofNullable(clientId); - return this; - } - - @JsonSetter(value = "client_secret", nulls = Nulls.SKIP) - public Builder clientSecret(Optional clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - public Builder clientSecret(String clientSecret) { - this.clientSecret = Optional.ofNullable(clientSecret); - return this; - } - - @JsonSetter(value = "scope", nulls = Nulls.SKIP) - public Builder scope(Optional scope) { - this.scope = scope; - return this; - } - - public Builder scope(ConnectionScopeOAuth2 scope) { - this.scope = Optional.ofNullable(scope); - 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 = "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 nonPersistentAttrs(List nonPersistentAttrs) { - this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); - return this; - } - - public ConnectionOptionsRenren build() { - return new ConnectionOptionsRenren( - clientId, - clientSecret, - scope, - setUserRootAttributes, - upstreamParams, - nonPersistentAttrs, - additionalProperties); - } - - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYammer.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYammer.java deleted file mode 100644 index 85fc45bfa..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYammer.java +++ /dev/null @@ -1,291 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.NullableNonemptyFilter; -import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonSetter; -import com.fasterxml.jackson.annotation.Nulls; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import java.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 = ConnectionOptionsYammer.Builder.class) -public final class ConnectionOptionsYammer implements IConnectionOptionsOAuth2Common, IConnectionOptionsCommon { - private final Optional clientId; - - private final Optional clientSecret; - - private final Optional scope; - - private final Optional setUserRootAttributes; - - private final OptionalNullable>> - upstreamParams; - - private final Optional> nonPersistentAttrs; - - private final Map additionalProperties; - - private ConnectionOptionsYammer( - Optional clientId, - Optional clientSecret, - Optional scope, - Optional setUserRootAttributes, - OptionalNullable>> upstreamParams, - Optional> nonPersistentAttrs, - Map additionalProperties) { - this.clientId = clientId; - this.clientSecret = clientSecret; - this.scope = scope; - this.setUserRootAttributes = setUserRootAttributes; - this.upstreamParams = upstreamParams; - this.nonPersistentAttrs = nonPersistentAttrs; - this.additionalProperties = additionalProperties; - } - - @JsonProperty("client_id") - @java.lang.Override - public Optional getClientId() { - return clientId; - } - - @JsonProperty("client_secret") - @java.lang.Override - public Optional getClientSecret() { - return clientSecret; - } - - @JsonProperty("scope") - @java.lang.Override - public Optional getScope() { - return scope; - } - - @JsonProperty("set_user_root_attributes") - @java.lang.Override - public Optional getSetUserRootAttributes() { - return setUserRootAttributes; - } - - @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; - } - - @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 ConnectionOptionsYammer && equalTo((ConnectionOptionsYammer) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(ConnectionOptionsYammer other) { - return clientId.equals(other.clientId) - && clientSecret.equals(other.clientSecret) - && scope.equals(other.scope) - && setUserRootAttributes.equals(other.setUserRootAttributes) - && upstreamParams.equals(other.upstreamParams) - && nonPersistentAttrs.equals(other.nonPersistentAttrs); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash( - this.clientId, - this.clientSecret, - this.scope, - this.setUserRootAttributes, - this.upstreamParams, - this.nonPersistentAttrs); - } - - @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 clientId = Optional.empty(); - - private Optional clientSecret = Optional.empty(); - - private Optional scope = Optional.empty(); - - private Optional setUserRootAttributes = Optional.empty(); - - private OptionalNullable>> upstreamParams = - OptionalNullable.absent(); - - private Optional> nonPersistentAttrs = Optional.empty(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - public Builder from(ConnectionOptionsYammer other) { - clientId(other.getClientId()); - clientSecret(other.getClientSecret()); - scope(other.getScope()); - setUserRootAttributes(other.getSetUserRootAttributes()); - upstreamParams(other.getUpstreamParams()); - nonPersistentAttrs(other.getNonPersistentAttrs()); - return this; - } - - @JsonSetter(value = "client_id", nulls = Nulls.SKIP) - public Builder clientId(Optional clientId) { - this.clientId = clientId; - return this; - } - - public Builder clientId(String clientId) { - this.clientId = Optional.ofNullable(clientId); - return this; - } - - @JsonSetter(value = "client_secret", nulls = Nulls.SKIP) - public Builder clientSecret(Optional clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - public Builder clientSecret(String clientSecret) { - this.clientSecret = Optional.ofNullable(clientSecret); - return this; - } - - @JsonSetter(value = "scope", nulls = Nulls.SKIP) - public Builder scope(Optional scope) { - this.scope = scope; - return this; - } - - public Builder scope(ConnectionScopeOAuth2 scope) { - this.scope = Optional.ofNullable(scope); - 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 = "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 nonPersistentAttrs(List nonPersistentAttrs) { - this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); - return this; - } - - public ConnectionOptionsYammer build() { - return new ConnectionOptionsYammer( - clientId, - clientSecret, - scope, - setUserRootAttributes, - upstreamParams, - nonPersistentAttrs, - additionalProperties); - } - - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptions.java new file mode 100644 index 000000000..b8df5f724 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptions.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; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ConnectionPasswordOptions.Builder.class) +public final class ConnectionPasswordOptions { + private final Optional complexity; + + private final Optional dictionary; + + private final Optional history; + + private final Optional profileData; + + private final Map additionalProperties; + + private ConnectionPasswordOptions( + Optional complexity, + Optional dictionary, + Optional history, + Optional profileData, + Map additionalProperties) { + this.complexity = complexity; + this.dictionary = dictionary; + this.history = history; + this.profileData = profileData; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("complexity") + public Optional getComplexity() { + return complexity; + } + + @JsonProperty("dictionary") + public Optional getDictionary() { + return dictionary; + } + + @JsonProperty("history") + public Optional getHistory() { + return history; + } + + @JsonProperty("profile_data") + public Optional getProfileData() { + return profileData; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionPasswordOptions && equalTo((ConnectionPasswordOptions) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionPasswordOptions other) { + return complexity.equals(other.complexity) + && dictionary.equals(other.dictionary) + && history.equals(other.history) + && profileData.equals(other.profileData); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.complexity, this.dictionary, this.history, this.profileData); + } + + @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 complexity = Optional.empty(); + + private Optional dictionary = Optional.empty(); + + private Optional history = Optional.empty(); + + private Optional profileData = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionPasswordOptions other) { + complexity(other.getComplexity()); + dictionary(other.getDictionary()); + history(other.getHistory()); + profileData(other.getProfileData()); + return this; + } + + @JsonSetter(value = "complexity", nulls = Nulls.SKIP) + public Builder complexity(Optional complexity) { + this.complexity = complexity; + return this; + } + + public Builder complexity(ConnectionPasswordOptionsComplexity complexity) { + this.complexity = Optional.ofNullable(complexity); + return this; + } + + @JsonSetter(value = "dictionary", nulls = Nulls.SKIP) + public Builder dictionary(Optional dictionary) { + this.dictionary = dictionary; + return this; + } + + public Builder dictionary(ConnectionPasswordOptionsDictionary dictionary) { + this.dictionary = Optional.ofNullable(dictionary); + return this; + } + + @JsonSetter(value = "history", nulls = Nulls.SKIP) + public Builder history(Optional history) { + this.history = history; + return this; + } + + public Builder history(ConnectionPasswordOptionsHistory history) { + this.history = Optional.ofNullable(history); + return this; + } + + @JsonSetter(value = "profile_data", nulls = Nulls.SKIP) + public Builder profileData(Optional profileData) { + this.profileData = profileData; + return this; + } + + public Builder profileData(ConnectionPasswordOptionsProfileData profileData) { + this.profileData = Optional.ofNullable(profileData); + return this; + } + + public ConnectionPasswordOptions build() { + return new ConnectionPasswordOptions(complexity, dictionary, history, profileData, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptionsComplexity.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptionsComplexity.java new file mode 100644 index 000000000..eca8b4bb3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptionsComplexity.java @@ -0,0 +1,254 @@ +/** + * 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; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ConnectionPasswordOptionsComplexity.Builder.class) +public final class ConnectionPasswordOptionsComplexity { + private final Optional minLength; + + private final Optional> characterTypes; + + private final Optional characterTypeRule; + + private final Optional identicalCharacters; + + private final Optional sequentialCharacters; + + private final Optional maxLengthExceeded; + + private final Map additionalProperties; + + private ConnectionPasswordOptionsComplexity( + Optional minLength, + Optional> characterTypes, + Optional characterTypeRule, + Optional identicalCharacters, + Optional sequentialCharacters, + Optional maxLengthExceeded, + Map additionalProperties) { + this.minLength = minLength; + this.characterTypes = characterTypes; + this.characterTypeRule = characterTypeRule; + this.identicalCharacters = identicalCharacters; + this.sequentialCharacters = sequentialCharacters; + this.maxLengthExceeded = maxLengthExceeded; + this.additionalProperties = additionalProperties; + } + + /** + * @return Minimum password length required (1-72 characters) + */ + @JsonProperty("min_length") + public Optional getMinLength() { + return minLength; + } + + /** + * @return Required character types that must be present in passwords. Valid options: uppercase, lowercase, number, special + */ + @JsonProperty("character_types") + public Optional> getCharacterTypes() { + return characterTypes; + } + + @JsonProperty("character_type_rule") + public Optional getCharacterTypeRule() { + return characterTypeRule; + } + + @JsonProperty("identical_characters") + public Optional getIdenticalCharacters() { + return identicalCharacters; + } + + @JsonProperty("sequential_characters") + public Optional getSequentialCharacters() { + return sequentialCharacters; + } + + @JsonProperty("max_length_exceeded") + public Optional getMaxLengthExceeded() { + return maxLengthExceeded; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionPasswordOptionsComplexity + && equalTo((ConnectionPasswordOptionsComplexity) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionPasswordOptionsComplexity other) { + return minLength.equals(other.minLength) + && characterTypes.equals(other.characterTypes) + && characterTypeRule.equals(other.characterTypeRule) + && identicalCharacters.equals(other.identicalCharacters) + && sequentialCharacters.equals(other.sequentialCharacters) + && maxLengthExceeded.equals(other.maxLengthExceeded); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.minLength, + this.characterTypes, + this.characterTypeRule, + this.identicalCharacters, + this.sequentialCharacters, + this.maxLengthExceeded); + } + + @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 minLength = Optional.empty(); + + private Optional> characterTypes = Optional.empty(); + + private Optional characterTypeRule = Optional.empty(); + + private Optional identicalCharacters = Optional.empty(); + + private Optional sequentialCharacters = Optional.empty(); + + private Optional maxLengthExceeded = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionPasswordOptionsComplexity other) { + minLength(other.getMinLength()); + characterTypes(other.getCharacterTypes()); + characterTypeRule(other.getCharacterTypeRule()); + identicalCharacters(other.getIdenticalCharacters()); + sequentialCharacters(other.getSequentialCharacters()); + maxLengthExceeded(other.getMaxLengthExceeded()); + return this; + } + + /** + *

Minimum password length required (1-72 characters)

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

Required character types that must be present in passwords. Valid options: uppercase, lowercase, number, special

+ */ + @JsonSetter(value = "character_types", nulls = Nulls.SKIP) + public Builder characterTypes(Optional> characterTypes) { + this.characterTypes = characterTypes; + return this; + } + + public Builder characterTypes(List characterTypes) { + this.characterTypes = Optional.ofNullable(characterTypes); + return this; + } + + @JsonSetter(value = "character_type_rule", nulls = Nulls.SKIP) + public Builder characterTypeRule(Optional characterTypeRule) { + this.characterTypeRule = characterTypeRule; + return this; + } + + public Builder characterTypeRule(PasswordCharacterTypeRulePolicyEnum characterTypeRule) { + this.characterTypeRule = Optional.ofNullable(characterTypeRule); + return this; + } + + @JsonSetter(value = "identical_characters", nulls = Nulls.SKIP) + public Builder identicalCharacters(Optional identicalCharacters) { + this.identicalCharacters = identicalCharacters; + return this; + } + + public Builder identicalCharacters(PasswordIdenticalCharactersPolicyEnum identicalCharacters) { + this.identicalCharacters = Optional.ofNullable(identicalCharacters); + return this; + } + + @JsonSetter(value = "sequential_characters", nulls = Nulls.SKIP) + public Builder sequentialCharacters(Optional sequentialCharacters) { + this.sequentialCharacters = sequentialCharacters; + return this; + } + + public Builder sequentialCharacters(PasswordSequentialCharactersPolicyEnum sequentialCharacters) { + this.sequentialCharacters = Optional.ofNullable(sequentialCharacters); + return this; + } + + @JsonSetter(value = "max_length_exceeded", nulls = Nulls.SKIP) + public Builder maxLengthExceeded(Optional maxLengthExceeded) { + this.maxLengthExceeded = maxLengthExceeded; + return this; + } + + public Builder maxLengthExceeded(PasswordMaxLengthExceededPolicyEnum maxLengthExceeded) { + this.maxLengthExceeded = Optional.ofNullable(maxLengthExceeded); + return this; + } + + public ConnectionPasswordOptionsComplexity build() { + return new ConnectionPasswordOptionsComplexity( + minLength, + characterTypes, + characterTypeRule, + identicalCharacters, + sequentialCharacters, + maxLengthExceeded, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptionsDictionary.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptionsDictionary.java new file mode 100644 index 000000000..3ce6fe2b5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptionsDictionary.java @@ -0,0 +1,167 @@ +/** + * 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; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ConnectionPasswordOptionsDictionary.Builder.class) +public final class ConnectionPasswordOptionsDictionary { + private final Optional active; + + private final Optional> custom; + + private final Optional default_; + + private final Map additionalProperties; + + private ConnectionPasswordOptionsDictionary( + Optional active, + Optional> custom, + Optional default_, + Map additionalProperties) { + this.active = active; + this.custom = custom; + this.default_ = default_; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables dictionary checking to prevent use of common passwords and custom blocked words + */ + @JsonProperty("active") + public Optional getActive() { + return active; + } + + /** + * @return Array of custom words to block in passwords. Maximum 200 items, each up to 50 characters + */ + @JsonProperty("custom") + public Optional> getCustom() { + return custom; + } + + @JsonProperty("default") + public Optional getDefault() { + return default_; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionPasswordOptionsDictionary + && equalTo((ConnectionPasswordOptionsDictionary) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionPasswordOptionsDictionary other) { + return active.equals(other.active) && custom.equals(other.custom) && default_.equals(other.default_); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active, this.custom, this.default_); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional active = Optional.empty(); + + private Optional> custom = Optional.empty(); + + private Optional default_ = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionPasswordOptionsDictionary other) { + active(other.getActive()); + custom(other.getCustom()); + default_(other.getDefault()); + return this; + } + + /** + *

Enables dictionary checking to prevent use of common passwords and custom blocked words

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

Array of custom words to block in passwords. Maximum 200 items, each up to 50 characters

+ */ + @JsonSetter(value = "custom", nulls = Nulls.SKIP) + public Builder custom(Optional> custom) { + this.custom = custom; + return this; + } + + public Builder custom(List custom) { + this.custom = Optional.ofNullable(custom); + return this; + } + + @JsonSetter(value = "default", nulls = Nulls.SKIP) + public Builder default_(Optional default_) { + this.default_ = default_; + return this; + } + + public Builder default_(PasswordDefaultDictionariesEnum default_) { + this.default_ = Optional.ofNullable(default_); + return this; + } + + public ConnectionPasswordOptionsDictionary build() { + return new ConnectionPasswordOptionsDictionary(active, custom, default_, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptionsHistory.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptionsHistory.java new file mode 100644 index 000000000..b3fe3c83e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptionsHistory.java @@ -0,0 +1,140 @@ +/** + * 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 = ConnectionPasswordOptionsHistory.Builder.class) +public final class ConnectionPasswordOptionsHistory { + private final Optional active; + + private final Optional size; + + private final Map additionalProperties; + + private ConnectionPasswordOptionsHistory( + Optional active, Optional size, Map additionalProperties) { + this.active = active; + this.size = size; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables password history checking to prevent users from reusing recent passwords + */ + @JsonProperty("active") + public Optional getActive() { + return active; + } + + /** + * @return Number of previous passwords to remember and prevent reuse (1-24) + */ + @JsonProperty("size") + public Optional getSize() { + return size; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionPasswordOptionsHistory && equalTo((ConnectionPasswordOptionsHistory) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionPasswordOptionsHistory other) { + return active.equals(other.active) && size.equals(other.size); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active, this.size); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional active = Optional.empty(); + + private Optional size = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionPasswordOptionsHistory other) { + active(other.getActive()); + size(other.getSize()); + return this; + } + + /** + *

Enables password history checking to prevent users from reusing recent passwords

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

Number of previous passwords to remember and prevent reuse (1-24)

+ */ + @JsonSetter(value = "size", nulls = Nulls.SKIP) + public Builder size(Optional size) { + this.size = size; + return this; + } + + public Builder size(Integer size) { + this.size = Optional.ofNullable(size); + return this; + } + + public ConnectionPasswordOptionsHistory build() { + return new ConnectionPasswordOptionsHistory(active, size, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptionsProfileData.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptionsProfileData.java new file mode 100644 index 000000000..4ce561bb8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordOptionsProfileData.java @@ -0,0 +1,142 @@ +/** + * 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; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ConnectionPasswordOptionsProfileData.Builder.class) +public final class ConnectionPasswordOptionsProfileData { + private final Optional active; + + private final Optional> blockedFields; + + private final Map additionalProperties; + + private ConnectionPasswordOptionsProfileData( + Optional active, Optional> blockedFields, Map additionalProperties) { + this.active = active; + this.blockedFields = blockedFields; + this.additionalProperties = additionalProperties; + } + + /** + * @return Prevents users from including profile data (like name, email) in their passwords + */ + @JsonProperty("active") + public Optional getActive() { + return active; + } + + /** + * @return Blocked profile fields. An array of up to 12 entries. + */ + @JsonProperty("blocked_fields") + public Optional> getBlockedFields() { + return blockedFields; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionPasswordOptionsProfileData + && equalTo((ConnectionPasswordOptionsProfileData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionPasswordOptionsProfileData other) { + return active.equals(other.active) && blockedFields.equals(other.blockedFields); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active, this.blockedFields); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional active = Optional.empty(); + + private Optional> blockedFields = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionPasswordOptionsProfileData other) { + active(other.getActive()); + blockedFields(other.getBlockedFields()); + return this; + } + + /** + *

Prevents users from including profile data (like name, email) in their passwords

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

Blocked profile fields. An array of up to 12 entries.

+ */ + @JsonSetter(value = "blocked_fields", nulls = Nulls.SKIP) + public Builder blockedFields(Optional> blockedFields) { + this.blockedFields = blockedFields; + return this; + } + + public Builder blockedFields(List blockedFields) { + this.blockedFields = Optional.ofNullable(blockedFields); + return this; + } + + public ConnectionPasswordOptionsProfileData build() { + return new ConnectionPasswordOptionsProfileData(active, blockedFields, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java index 80b1a4f7e..50c1edeb0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java @@ -26,7 +26,7 @@ public final class ConnectionPropertiesOptions { private final OptionalNullable validation; - private final Optional> nonPersistentAttrs; + private final OptionalNullable> nonPersistentAttrs; private final Optional> precedence; @@ -38,6 +38,8 @@ public final class ConnectionPropertiesOptions { private final Optional importMode; + private final OptionalNullable>> configuration; + private final Optional customScripts; private final OptionalNullable authenticationMethods; @@ -81,16 +83,19 @@ public final class ConnectionPropertiesOptions { private final OptionalNullable federatedConnectionsAccessTokens; + private final Optional passwordOptions; + private final Map additionalProperties; private ConnectionPropertiesOptions( OptionalNullable validation, - Optional> nonPersistentAttrs, + OptionalNullable> nonPersistentAttrs, Optional> precedence, Optional attributes, Optional enableScriptContext, Optional enabledDatabaseCustomization, Optional importMode, + OptionalNullable>> configuration, Optional customScripts, OptionalNullable authenticationMethods, OptionalNullable passkeyOptions, @@ -112,6 +117,7 @@ private ConnectionPropertiesOptions( Optional setUserRootAttributes, OptionalNullable gatewayAuthentication, OptionalNullable federatedConnectionsAccessTokens, + Optional passwordOptions, Map additionalProperties) { this.validation = validation; this.nonPersistentAttrs = nonPersistentAttrs; @@ -120,6 +126,7 @@ private ConnectionPropertiesOptions( this.enableScriptContext = enableScriptContext; this.enabledDatabaseCustomization = enabledDatabaseCustomization; this.importMode = importMode; + this.configuration = configuration; this.customScripts = customScripts; this.authenticationMethods = authenticationMethods; this.passkeyOptions = passkeyOptions; @@ -141,6 +148,7 @@ private ConnectionPropertiesOptions( this.setUserRootAttributes = setUserRootAttributes; this.gatewayAuthentication = gatewayAuthentication; this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.passwordOptions = passwordOptions; this.additionalProperties = additionalProperties; } @@ -156,8 +164,12 @@ public OptionalNullable getValidation() { /** * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("non_persistent_attrs") - public Optional> getNonPersistentAttrs() { + public OptionalNullable> getNonPersistentAttrs() { + if (nonPersistentAttrs == null) { + return OptionalNullable.absent(); + } return nonPersistentAttrs; } @@ -198,6 +210,18 @@ public Optional getImportMode() { return importMode; } + /** + * @return Stores encrypted string only configurations for connections + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("configuration") + public OptionalNullable>> getConfiguration() { + if (configuration == null) { + return OptionalNullable.absent(); + } + return configuration; + } + @JsonProperty("customScripts") public Optional getCustomScripts() { return customScripts; @@ -343,12 +367,29 @@ public OptionalNullable getFederated return federatedConnectionsAccessTokens; } + @JsonProperty("password_options") + public Optional getPasswordOptions() { + return passwordOptions; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("validation") private OptionalNullable _getValidation() { return validation; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("non_persistent_attrs") + private OptionalNullable> _getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("configuration") + private OptionalNullable>> _getConfiguration() { + return configuration; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("authentication_methods") private OptionalNullable _getAuthenticationMethods() { @@ -429,6 +470,7 @@ private boolean equalTo(ConnectionPropertiesOptions other) { && enableScriptContext.equals(other.enableScriptContext) && enabledDatabaseCustomization.equals(other.enabledDatabaseCustomization) && importMode.equals(other.importMode) + && configuration.equals(other.configuration) && customScripts.equals(other.customScripts) && authenticationMethods.equals(other.authenticationMethods) && passkeyOptions.equals(other.passkeyOptions) @@ -449,7 +491,8 @@ private boolean equalTo(ConnectionPropertiesOptions other) { && upstreamParams.equals(other.upstreamParams) && setUserRootAttributes.equals(other.setUserRootAttributes) && gatewayAuthentication.equals(other.gatewayAuthentication) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens); + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && passwordOptions.equals(other.passwordOptions); } @java.lang.Override @@ -462,6 +505,7 @@ public int hashCode() { this.enableScriptContext, this.enabledDatabaseCustomization, this.importMode, + this.configuration, this.customScripts, this.authenticationMethods, this.passkeyOptions, @@ -482,7 +526,8 @@ public int hashCode() { this.upstreamParams, this.setUserRootAttributes, this.gatewayAuthentication, - this.federatedConnectionsAccessTokens); + this.federatedConnectionsAccessTokens, + this.passwordOptions); } @java.lang.Override @@ -498,7 +543,7 @@ public static Builder builder() { public static final class Builder { private OptionalNullable validation = OptionalNullable.absent(); - private Optional> nonPersistentAttrs = Optional.empty(); + private OptionalNullable> nonPersistentAttrs = OptionalNullable.absent(); private Optional> precedence = Optional.empty(); @@ -510,6 +555,8 @@ public static final class Builder { private Optional importMode = Optional.empty(); + private OptionalNullable>> configuration = OptionalNullable.absent(); + private Optional customScripts = Optional.empty(); private OptionalNullable authenticationMethods = OptionalNullable.absent(); @@ -556,6 +603,8 @@ public static final class Builder { private OptionalNullable federatedConnectionsAccessTokens = OptionalNullable.absent(); + private Optional passwordOptions = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -569,6 +618,7 @@ public Builder from(ConnectionPropertiesOptions other) { enableScriptContext(other.getEnableScriptContext()); enabledDatabaseCustomization(other.getEnabledDatabaseCustomization()); importMode(other.getImportMode()); + configuration(other.getConfiguration()); customScripts(other.getCustomScripts()); authenticationMethods(other.getAuthenticationMethods()); passkeyOptions(other.getPasskeyOptions()); @@ -590,6 +640,7 @@ public Builder from(ConnectionPropertiesOptions other) { setUserRootAttributes(other.getSetUserRootAttributes()); gatewayAuthentication(other.getGatewayAuthentication()); federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + passwordOptions(other.getPasswordOptions()); return this; } @@ -628,13 +679,33 @@ public Builder validation(com.auth0.client.mgmt.core.NullableAn array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

*/ @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) - public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + public Builder nonPersistentAttrs(@Nullable OptionalNullable> nonPersistentAttrs) { this.nonPersistentAttrs = nonPersistentAttrs; return this; } public Builder nonPersistentAttrs(List nonPersistentAttrs) { - this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + this.nonPersistentAttrs = OptionalNullable.of(nonPersistentAttrs); + return this; + } + + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + if (nonPersistentAttrs.isPresent()) { + this.nonPersistentAttrs = OptionalNullable.of(nonPersistentAttrs.get()); + } else { + this.nonPersistentAttrs = OptionalNullable.absent(); + } + return this; + } + + public Builder nonPersistentAttrs(com.auth0.client.mgmt.core.Nullable> nonPersistentAttrs) { + if (nonPersistentAttrs.isNull()) { + this.nonPersistentAttrs = OptionalNullable.ofNull(); + } else if (nonPersistentAttrs.isEmpty()) { + this.nonPersistentAttrs = OptionalNullable.absent(); + } else { + this.nonPersistentAttrs = OptionalNullable.of(nonPersistentAttrs.get()); + } return this; } @@ -705,6 +776,41 @@ public Builder importMode(Boolean importMode) { return this; } + /** + *

Stores encrypted string only configurations for connections

+ */ + @JsonSetter(value = "configuration", nulls = Nulls.SKIP) + public Builder configuration(@Nullable OptionalNullable>> configuration) { + this.configuration = configuration; + return this; + } + + public Builder configuration(Map> configuration) { + this.configuration = OptionalNullable.of(configuration); + return this; + } + + public Builder configuration(Optional>> configuration) { + if (configuration.isPresent()) { + this.configuration = OptionalNullable.of(configuration.get()); + } else { + this.configuration = OptionalNullable.absent(); + } + return this; + } + + public Builder configuration( + com.auth0.client.mgmt.core.Nullable>> configuration) { + if (configuration.isNull()) { + this.configuration = OptionalNullable.ofNull(); + } else if (configuration.isEmpty()) { + this.configuration = OptionalNullable.absent(); + } else { + this.configuration = OptionalNullable.of(configuration.get()); + } + return this; + } + @JsonSetter(value = "customScripts", nulls = Nulls.SKIP) public Builder customScripts(Optional customScripts) { this.customScripts = customScripts; @@ -1164,6 +1270,17 @@ public Builder federatedConnectionsAccessTokens( return this; } + @JsonSetter(value = "password_options", nulls = Nulls.SKIP) + public Builder passwordOptions(Optional passwordOptions) { + this.passwordOptions = passwordOptions; + return this; + } + + public Builder passwordOptions(ConnectionPasswordOptions passwordOptions) { + this.passwordOptions = Optional.ofNullable(passwordOptions); + return this; + } + public ConnectionPropertiesOptions build() { return new ConnectionPropertiesOptions( validation, @@ -1173,6 +1290,7 @@ public ConnectionPropertiesOptions build() { enableScriptContext, enabledDatabaseCustomization, importMode, + configuration, customScripts, authenticationMethods, passkeyOptions, @@ -1194,6 +1312,7 @@ public ConnectionPropertiesOptions build() { setUserRootAttributes, gatewayAuthentication, federatedConnectionsAccessTokens, + passwordOptions, additionalProperties); } 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 83a7e7e3c..137559f63 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseCommon.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseCommon.java @@ -18,21 +18,21 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseCommon.Builder.class) -public final class ConnectionResponseCommon - implements IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { - private final Optional id; +public final class ConnectionResponseCommon implements IConnectionResponseCommon, ICreateConnectionCommon { + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,19 +40,19 @@ public final class ConnectionResponseCommon private final Map additionalProperties; private ConnectionResponseCommon( - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, Map additionalProperties) { this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.additionalProperties = additionalProperties; @@ -60,7 +60,7 @@ private ConnectionResponseCommon( @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -72,22 +72,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -115,8 +118,8 @@ private boolean equalTo(ConnectionResponseCommon other) { return id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata); } @@ -127,8 +130,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata); } @@ -138,129 +141,183 @@ public String toString() { return ObjectMappers.stringify(this); } - public static Builder builder() { + public static IdStage builder() { return new Builder(); } + public interface IdStage { + NameStage id(@NotNull String id); + + Builder from(ConnectionResponseCommon other); + } + + public interface NameStage { + _FinalStage name(@NotNull String name); + } + + public interface _FinalStage { + ConnectionResponseCommon build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional>> metadata); + + _FinalStage metadata(Map> metadata); + } + @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder { - private Optional id = Optional.empty(); + public static final class Builder implements IdStage, NameStage, _FinalStage { + private String id; - private Optional> realms = Optional.empty(); + private String name; + + private Optional>> metadata = Optional.empty(); - private Optional name = Optional.empty(); + private Optional isDomainConnection = Optional.empty(); private Optional displayName = Optional.empty(); private Optional> enabledClients = Optional.empty(); - private Optional isDomainConnection = Optional.empty(); - - private Optional>> metadata = Optional.empty(); + private Optional> realms = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); private Builder() {} + @java.lang.Override public Builder from(ConnectionResponseCommon other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); return this; } - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public Builder id(Optional id) { - this.id = id; + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } - public Builder id(String id) { - this.id = Optional.ofNullable(id); + @java.lang.Override + @JsonSetter("name") + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); 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); + @java.lang.Override + public _FinalStage metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); return this; } - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public Builder name(Optional name) { - this.name = name; + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional>> metadata) { + this.metadata = metadata; return this; } - public Builder name(String name) { - this.name = Optional.ofNullable(name); + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); return this; } - @JsonSetter(value = "display_name", nulls = Nulls.SKIP) - public Builder displayName(Optional displayName) { - this.displayName = displayName; + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; return this; } - public Builder displayName(String displayName) { + @java.lang.Override + public _FinalStage 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; + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; return this; } - public Builder enabledClients(List enabledClients) { + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage 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); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } - @JsonSetter(value = "metadata", nulls = Nulls.SKIP) - public Builder metadata(Optional>> metadata) { - this.metadata = metadata; + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); return this; } - public Builder metadata(Map> metadata) { - this.metadata = Optional.ofNullable(metadata); + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; return this; } + @java.lang.Override public ConnectionResponseCommon build() { return new ConnectionResponseCommon( - id, realms, name, displayName, enabledClients, isDomainConnection, metadata, additionalProperties); + id, realms, name, enabledClients, displayName, isDomainConnection, metadata, additionalProperties); } + @java.lang.Override public Builder additionalProperty(String key, Object value) { this.additionalProperties.put(key, value); return this; } + @java.lang.Override public Builder additionalProperties(Map additionalProperties) { this.additionalProperties.putAll(additionalProperties); return this; diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAd.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAd.java index 7d6f6a6ed..cb1bb84a5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAd.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentAd.Builder.class) public final class ConnectionResponseContentAd - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -53,11 +53,11 @@ public final class ConnectionResponseContentAd private ConnectionResponseContentAd( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentAdStrategy strategy, @@ -69,8 +69,8 @@ private ConnectionResponseContentAd( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -93,7 +93,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -105,22 +105,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -165,8 +168,8 @@ private boolean equalTo(ConnectionResponseContentAd other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -182,8 +185,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -196,16 +199,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentAdStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentAd other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentAdStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentAd build(); @@ -221,26 +232,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -259,7 +265,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentAdStrategy strategy; private Optional provisioningTicketUrl = Optional.empty(); @@ -270,16 +280,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -296,8 +302,8 @@ public Builder from(ConnectionResponseContentAd other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -306,6 +312,20 @@ public Builder from(ConnectionResponseContentAd other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentAdStrategy strategy) { @@ -365,19 +385,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -391,16 +398,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -417,19 +431,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -464,8 +465,8 @@ public ConnectionResponseContentAd build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 9634ef631..5916ad687 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAdfs.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAdfs.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentAdfs.Builder.class) public final class ConnectionResponseContentAdfs - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -55,11 +55,11 @@ public final class ConnectionResponseContentAdfs private ConnectionResponseContentAdfs( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentAdfsStrategy strategy, @@ -72,8 +72,8 @@ private ConnectionResponseContentAdfs( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -97,7 +97,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -109,22 +109,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -174,8 +177,8 @@ private boolean equalTo(ConnectionResponseContentAdfs other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -192,8 +195,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -207,16 +210,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentAdfsStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentAdfs other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentAdfsStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentAdfs build(); @@ -232,26 +243,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -274,7 +280,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentAdfsStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -287,16 +297,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -313,8 +319,8 @@ public Builder from(ConnectionResponseContentAdfs other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -324,6 +330,20 @@ public Builder from(ConnectionResponseContentAdfs other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentAdfsStrategy strategy) { @@ -396,19 +416,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -422,16 +429,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -448,19 +462,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -495,8 +496,8 @@ public ConnectionResponseContentAdfs build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 e06d54bcd..dbb45b337 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAmazon.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAmazon.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentAmazon.Builder.class) public final class ConnectionResponseContentAmazon - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentAmazon private ConnectionResponseContentAmazon( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentAmazonStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentAmazon( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentAmazon other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentAmazonStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentAmazon other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentAmazonStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentAmazon build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentAmazonStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentAmazon other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentAmazon other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentAmazonStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentAmazon build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAol.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAol.java deleted file mode 100644 index bbabaeb16..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAol.java +++ /dev/null @@ -1,457 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.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; - -@JsonInclude(JsonInclude.Include.NON_ABSENT) -@JsonDeserialize(builder = ConnectionResponseContentAol.Builder.class) -public final class ConnectionResponseContentAol - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { - private final Optional authentication; - - private final Optional connectedAccounts; - - private final Optional id; - - private final Optional> realms; - - private final Optional name; - - private final Optional displayName; - - private final Optional> enabledClients; - - private final Optional isDomainConnection; - - private final Optional>> metadata; - - private final ConnectionResponseContentAolStrategy strategy; - - private final Optional options; - - private final Map additionalProperties; - - private ConnectionResponseContentAol( - Optional authentication, - Optional connectedAccounts, - Optional id, - Optional> realms, - Optional name, - Optional displayName, - Optional> enabledClients, - Optional isDomainConnection, - Optional>> metadata, - ConnectionResponseContentAolStrategy strategy, - Optional options, - Map additionalProperties) { - this.authentication = authentication; - this.connectedAccounts = connectedAccounts; - this.id = id; - this.realms = realms; - this.name = name; - this.displayName = displayName; - this.enabledClients = enabledClients; - this.isDomainConnection = isDomainConnection; - this.metadata = metadata; - this.strategy = strategy; - 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("id") - @java.lang.Override - public Optional getId() { - return id; - } - - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("name") - @java.lang.Override - public Optional getName() { - return name; - } - - @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("strategy") - public ConnectionResponseContentAolStrategy getStrategy() { - return strategy; - } - - @JsonProperty("options") - public Optional getOptions() { - return options; - } - - @java.lang.Override - public boolean equals(Object other) { - if (this == other) return true; - return other instanceof ConnectionResponseContentAol && equalTo((ConnectionResponseContentAol) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(ConnectionResponseContentAol other) { - return authentication.equals(other.authentication) - && connectedAccounts.equals(other.connectedAccounts) - && id.equals(other.id) - && realms.equals(other.realms) - && name.equals(other.name) - && displayName.equals(other.displayName) - && enabledClients.equals(other.enabledClients) - && isDomainConnection.equals(other.isDomainConnection) - && metadata.equals(other.metadata) - && strategy.equals(other.strategy) - && options.equals(other.options); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash( - this.authentication, - this.connectedAccounts, - this.id, - this.realms, - this.name, - this.displayName, - this.enabledClients, - this.isDomainConnection, - this.metadata, - this.strategy, - this.options); - } - - @java.lang.Override - public String toString() { - return ObjectMappers.stringify(this); - } - - public static StrategyStage builder() { - return new Builder(); - } - - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentAolStrategy strategy); - - Builder from(ConnectionResponseContentAol other); - } - - public interface _FinalStage { - ConnectionResponseContentAol build(); - - _FinalStage additionalProperty(String key, Object value); - - _FinalStage additionalProperties(Map additionalProperties); - - _FinalStage authentication(Optional authentication); - - _FinalStage authentication(ConnectionAuthenticationPurpose authentication); - - _FinalStage connectedAccounts(Optional connectedAccounts); - - _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - - _FinalStage id(Optional id); - - _FinalStage id(String id); - - _FinalStage realms(Optional> realms); - - _FinalStage realms(List realms); - - _FinalStage name(Optional name); - - _FinalStage name(String name); - - _FinalStage displayName(Optional displayName); - - _FinalStage displayName(String displayName); - - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - - _FinalStage isDomainConnection(Optional isDomainConnection); - - _FinalStage isDomainConnection(Boolean isDomainConnection); - - _FinalStage metadata(Optional>> metadata); - - _FinalStage metadata(Map> metadata); - - _FinalStage options(Optional options); - - _FinalStage options(ConnectionOptionsAol options); - } - - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { - private ConnectionResponseContentAolStrategy strategy; - - private Optional options = Optional.empty(); - - private Optional>> metadata = Optional.empty(); - - private Optional isDomainConnection = Optional.empty(); - - private Optional> enabledClients = Optional.empty(); - - private Optional displayName = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional> realms = Optional.empty(); - - private Optional id = Optional.empty(); - - private Optional connectedAccounts = Optional.empty(); - - private Optional authentication = Optional.empty(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - @java.lang.Override - public Builder from(ConnectionResponseContentAol other) { - authentication(other.getAuthentication()); - connectedAccounts(other.getConnectedAccounts()); - id(other.getId()); - realms(other.getRealms()); - name(other.getName()); - displayName(other.getDisplayName()); - enabledClients(other.getEnabledClients()); - isDomainConnection(other.getIsDomainConnection()); - metadata(other.getMetadata()); - strategy(other.getStrategy()); - options(other.getOptions()); - return this; - } - - @java.lang.Override - @JsonSetter("strategy") - public _FinalStage strategy(@NotNull ConnectionResponseContentAolStrategy strategy) { - this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); - return this; - } - - @java.lang.Override - public _FinalStage options(ConnectionOptionsAol options) { - this.options = Optional.ofNullable(options); - return this; - } - - @java.lang.Override - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public _FinalStage options(Optional options) { - this.options = options; - return this; - } - - @java.lang.Override - public _FinalStage metadata(Map> metadata) { - this.metadata = Optional.ofNullable(metadata); - return this; - } - - @java.lang.Override - @JsonSetter(value = "metadata", nulls = Nulls.SKIP) - public _FinalStage metadata(Optional>> metadata) { - this.metadata = metadata; - return this; - } - - @java.lang.Override - public _FinalStage isDomainConnection(Boolean isDomainConnection) { - this.isDomainConnection = Optional.ofNullable(isDomainConnection); - return this; - } - - @java.lang.Override - @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) - public _FinalStage isDomainConnection(Optional isDomainConnection) { - this.isDomainConnection = isDomainConnection; - return this; - } - - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - - @java.lang.Override - public _FinalStage displayName(String displayName) { - this.displayName = Optional.ofNullable(displayName); - return this; - } - - @java.lang.Override - @JsonSetter(value = "display_name", nulls = Nulls.SKIP) - public _FinalStage displayName(Optional displayName) { - this.displayName = displayName; - return this; - } - - @java.lang.Override - public _FinalStage name(String name) { - this.name = Optional.ofNullable(name); - return this; - } - - @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; - return this; - } - - @java.lang.Override - public _FinalStage realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @java.lang.Override - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public _FinalStage realms(Optional> realms) { - this.realms = realms; - return this; - } - - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - - @java.lang.Override - public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { - this.connectedAccounts = Optional.ofNullable(connectedAccounts); - return this; - } - - @java.lang.Override - @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) - public _FinalStage connectedAccounts(Optional connectedAccounts) { - this.connectedAccounts = connectedAccounts; - return this; - } - - @java.lang.Override - public _FinalStage authentication(ConnectionAuthenticationPurpose authentication) { - this.authentication = Optional.ofNullable(authentication); - return this; - } - - @java.lang.Override - @JsonSetter(value = "authentication", nulls = Nulls.SKIP) - public _FinalStage authentication(Optional authentication) { - this.authentication = authentication; - return this; - } - - @java.lang.Override - public ConnectionResponseContentAol build() { - return new ConnectionResponseContentAol( - authentication, - connectedAccounts, - id, - realms, - name, - displayName, - enabledClients, - isDomainConnection, - metadata, - strategy, - options, - additionalProperties); - } - - @java.lang.Override - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - @java.lang.Override - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentApple.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentApple.java index 17ae53d00..ad956b284 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentApple.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentApple.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentApple.Builder.class) public final class ConnectionResponseContentApple - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentApple private ConnectionResponseContentApple( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentAppleStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentApple( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentApple other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentAppleStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentApple other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentAppleStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentApple build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentAppleStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentApple other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentApple other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentAppleStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentApple build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 e15baab64..5e26f32c1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentAuth0.Builder.class) public final class ConnectionResponseContentAuth0 - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentAuth0 private ConnectionResponseContentAuth0( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentAuth0Strategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentAuth0( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentAuth0 other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentAuth0Strategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentAuth0 other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentAuth0Strategy strategy); + } + public interface _FinalStage { ConnectionResponseContentAuth0 build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentAuth0Strategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentAuth0 other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentAuth0 other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentAuth0Strategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentAuth0 build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 543e11981..9fe0306f6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0Oidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0Oidc.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentAuth0Oidc.Builder.class) public final class ConnectionResponseContentAuth0Oidc - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentAuth0Oidc private ConnectionResponseContentAuth0Oidc( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentAuth0OidcStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentAuth0Oidc( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -157,8 +160,8 @@ private boolean equalTo(ConnectionResponseContentAuth0Oidc other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -173,8 +176,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -186,16 +189,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentAuth0OidcStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentAuth0Oidc other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentAuth0OidcStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentAuth0Oidc build(); @@ -211,26 +222,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -245,7 +251,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentAuth0OidcStrategy strategy; private Optional options = Optional.empty(); @@ -254,16 +264,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -280,8 +286,8 @@ public Builder from(ConnectionResponseContentAuth0Oidc other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -289,6 +295,20 @@ public Builder from(ConnectionResponseContentAuth0Oidc other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentAuth0OidcStrategy strategy) { @@ -335,19 +355,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -361,16 +368,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -387,19 +401,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -434,8 +435,8 @@ public ConnectionResponseContentAuth0Oidc build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 bada7372f..831897ac5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAzureAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAzureAd.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentAzureAd.Builder.class) public final class ConnectionResponseContentAzureAd - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -55,11 +55,11 @@ public final class ConnectionResponseContentAzureAd private ConnectionResponseContentAzureAd( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentAzureAdStrategy strategy, @@ -72,8 +72,8 @@ private ConnectionResponseContentAzureAd( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -97,7 +97,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -109,22 +109,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -174,8 +177,8 @@ private boolean equalTo(ConnectionResponseContentAzureAd other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -192,8 +195,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -207,16 +210,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentAzureAdStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentAzureAd other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentAzureAdStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentAzureAd build(); @@ -232,26 +243,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -274,7 +280,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentAzureAdStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -287,16 +297,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -313,8 +319,8 @@ public Builder from(ConnectionResponseContentAzureAd other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -324,6 +330,20 @@ public Builder from(ConnectionResponseContentAzureAd other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentAzureAdStrategy strategy) { @@ -396,19 +416,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -422,16 +429,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -448,19 +462,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -495,8 +496,8 @@ public ConnectionResponseContentAzureAd build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 902685a97..19ae5aeb2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBaidu.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBaidu.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentBaidu.Builder.class) public final class ConnectionResponseContentBaidu - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentBaidu private ConnectionResponseContentBaidu( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentBaiduStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentBaidu( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentBaidu other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentBaiduStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentBaidu other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentBaiduStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentBaidu build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentBaiduStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentBaidu other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentBaidu other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentBaiduStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentBaidu build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 31db1395e..10abc2e75 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitbucket.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitbucket.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentBitbucket.Builder.class) public final class ConnectionResponseContentBitbucket - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentBitbucket private ConnectionResponseContentBitbucket( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentBitbucketStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentBitbucket( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -157,8 +160,8 @@ private boolean equalTo(ConnectionResponseContentBitbucket other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -173,8 +176,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -186,16 +189,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentBitbucketStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentBitbucket other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentBitbucketStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentBitbucket build(); @@ -211,26 +222,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -245,7 +251,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentBitbucketStrategy strategy; private Optional options = Optional.empty(); @@ -254,16 +264,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -280,8 +286,8 @@ public Builder from(ConnectionResponseContentBitbucket other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -289,6 +295,20 @@ public Builder from(ConnectionResponseContentBitbucket other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentBitbucketStrategy strategy) { @@ -335,19 +355,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -361,16 +368,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -387,19 +401,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -434,8 +435,8 @@ public ConnectionResponseContentBitbucket build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 ec367c965..be3b56ab3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitly.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitly.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentBitly.Builder.class) public final class ConnectionResponseContentBitly - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentBitly private ConnectionResponseContentBitly( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentBitlyStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentBitly( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentBitly other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentBitlyStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentBitly other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentBitlyStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentBitly build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentBitlyStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentBitly other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentBitly other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentBitlyStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentBitly build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 696c78ec6..14a5eb3f5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBox.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentBox.Builder.class) public final class ConnectionResponseContentBox - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentBox private ConnectionResponseContentBox( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentBoxStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentBox( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentBox other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentBoxStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentBox other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentBoxStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentBox build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentBoxStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentBox other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentBox other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentBoxStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentBox build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 a8fd19ea1..13a2077d0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentCustom.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentCustom.Builder.class) public final class ConnectionResponseContentCustom - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -53,11 +53,11 @@ public final class ConnectionResponseContentCustom private ConnectionResponseContentCustom( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentCustomStrategy strategy, @@ -69,8 +69,8 @@ private ConnectionResponseContentCustom( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -93,7 +93,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -105,22 +105,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -165,8 +168,8 @@ private boolean equalTo(ConnectionResponseContentCustom other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -182,8 +185,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -196,16 +199,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentCustomStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentCustom other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentCustomStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentCustom build(); @@ -221,26 +232,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -259,7 +265,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentCustomStrategy strategy; private Optional provisioningTicketUrl = Optional.empty(); @@ -270,16 +280,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -296,8 +302,8 @@ public Builder from(ConnectionResponseContentCustom other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -306,6 +312,20 @@ public Builder from(ConnectionResponseContentCustom other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentCustomStrategy strategy) { @@ -365,19 +385,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -391,16 +398,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -417,19 +431,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -464,8 +465,8 @@ public ConnectionResponseContentCustom build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 6c72cb1a3..a0956e91e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDaccount.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDaccount.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentDaccount.Builder.class) public final class ConnectionResponseContentDaccount - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentDaccount private ConnectionResponseContentDaccount( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentDaccountStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentDaccount( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentDaccount other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentDaccountStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentDaccount other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentDaccountStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentDaccount build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentDaccountStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentDaccount other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentDaccount other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentDaccountStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentDaccount build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 2b4e9e89d..070ee7ff8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDropbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDropbox.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentDropbox.Builder.class) public final class ConnectionResponseContentDropbox - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentDropbox private ConnectionResponseContentDropbox( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentDropboxStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentDropbox( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentDropbox other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentDropboxStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentDropbox other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentDropboxStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentDropbox build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentDropboxStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentDropbox other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentDropbox other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentDropboxStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentDropbox build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 b5150028a..cc7546bdf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDwolla.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDwolla.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentDwolla.Builder.class) public final class ConnectionResponseContentDwolla - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentDwolla private ConnectionResponseContentDwolla( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentDwollaStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentDwolla( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentDwolla other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentDwollaStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentDwolla other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentDwollaStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentDwolla build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentDwollaStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentDwolla other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentDwolla other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentDwollaStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentDwolla build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 d46250bf1..95fb4cc2b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEmail.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentEmail.Builder.class) public final class ConnectionResponseContentEmail - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentEmail private ConnectionResponseContentEmail( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentEmailStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentEmail( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentEmail other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentEmailStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentEmail other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentEmailStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentEmail build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentEmailStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentEmail other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentEmail other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentEmailStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentEmail build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 1d2597c46..9cb54e484 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernote.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernote.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentEvernote.Builder.class) public final class ConnectionResponseContentEvernote - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentEvernote private ConnectionResponseContentEvernote( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentEvernoteStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentEvernote( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentEvernote other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentEvernoteStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentEvernote other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentEvernoteStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentEvernote build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentEvernoteStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentEvernote other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentEvernote other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentEvernoteStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentEvernote build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 58b305b73..e537fcc81 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernoteSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernoteSandbox.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentEvernoteSandbox.Builder.class) public final class ConnectionResponseContentEvernoteSandbox - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentEvernoteSandbox private ConnectionResponseContentEvernoteSandbox( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentEvernoteSandboxStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentEvernoteSandbox( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -157,8 +160,8 @@ private boolean equalTo(ConnectionResponseContentEvernoteSandbox other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -173,8 +176,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -186,16 +189,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentEvernoteSandboxStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentEvernoteSandbox other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentEvernoteSandboxStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentEvernoteSandbox build(); @@ -211,26 +222,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -245,7 +251,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentEvernoteSandboxStrategy strategy; private Optional options = Optional.empty(); @@ -254,16 +264,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -280,8 +286,8 @@ public Builder from(ConnectionResponseContentEvernoteSandbox other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -289,6 +295,20 @@ public Builder from(ConnectionResponseContentEvernoteSandbox other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentEvernoteSandboxStrategy strategy) { @@ -335,19 +355,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -361,16 +368,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -387,19 +401,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -434,8 +435,8 @@ public ConnectionResponseContentEvernoteSandbox build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 881f2e207..a482f224f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentExact.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentExact.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentExact.Builder.class) public final class ConnectionResponseContentExact - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentExact private ConnectionResponseContentExact( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentExactStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentExact( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentExact other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentExactStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentExact other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentExactStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentExact build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentExactStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentExact other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentExact other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentExactStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentExact build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 da0140cf2..7e796603d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFacebook.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFacebook.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentFacebook.Builder.class) public final class ConnectionResponseContentFacebook - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentFacebook private ConnectionResponseContentFacebook( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentFacebookStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentFacebook( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentFacebook other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentFacebookStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentFacebook other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentFacebookStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentFacebook build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentFacebookStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentFacebook other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentFacebook other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentFacebookStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentFacebook build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 38057259d..cac628120 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFitbit.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFitbit.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentFitbit.Builder.class) public final class ConnectionResponseContentFitbit - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentFitbit private ConnectionResponseContentFitbit( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentFitbitStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentFitbit( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentFitbit other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentFitbitStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentFitbit other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentFitbitStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentFitbit build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentFitbitStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentFitbit other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentFitbit other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentFitbitStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentFitbit build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 5de190ef7..fe5e76a3c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFlickr.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFlickr.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentFlickr.Builder.class) public final class ConnectionResponseContentFlickr - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentFlickr private ConnectionResponseContentFlickr( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentFlickrStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentFlickr( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentFlickr other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentFlickrStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentFlickr other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentFlickrStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentFlickr build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentFlickrStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentFlickr other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentFlickr other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentFlickrStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentFlickr build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 9599f613c..7ab899f24 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGitHub.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGitHub.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentGitHub.Builder.class) public final class ConnectionResponseContentGitHub - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentGitHub private ConnectionResponseContentGitHub( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentGitHubStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentGitHub( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentGitHub other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentGitHubStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentGitHub other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentGitHubStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentGitHub build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentGitHubStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentGitHub other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentGitHub other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentGitHubStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentGitHub build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 51de45c8b..bea9e2ba2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleApps.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleApps.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentGoogleApps.Builder.class) public final class ConnectionResponseContentGoogleApps - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -55,11 +55,11 @@ public final class ConnectionResponseContentGoogleApps private ConnectionResponseContentGoogleApps( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentGoogleAppsStrategy strategy, @@ -72,8 +72,8 @@ private ConnectionResponseContentGoogleApps( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -97,7 +97,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -109,22 +109,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -175,8 +178,8 @@ private boolean equalTo(ConnectionResponseContentGoogleApps other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -193,8 +196,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -208,16 +211,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentGoogleAppsStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentGoogleApps other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentGoogleAppsStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentGoogleApps build(); @@ -233,26 +244,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -275,7 +281,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentGoogleAppsStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -288,16 +298,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -314,8 +320,8 @@ public Builder from(ConnectionResponseContentGoogleApps other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -325,6 +331,20 @@ public Builder from(ConnectionResponseContentGoogleApps other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentGoogleAppsStrategy strategy) { @@ -397,19 +417,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -423,16 +430,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -449,19 +463,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -496,8 +497,8 @@ public ConnectionResponseContentGoogleApps build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 20fb9da88..607e6ed2c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleOAuth2.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentGoogleOAuth2.Builder.class) public final class ConnectionResponseContentGoogleOAuth2 - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentGoogleOAuth2 private ConnectionResponseContentGoogleOAuth2( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentGoogleOAuth2Strategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentGoogleOAuth2( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -157,8 +160,8 @@ private boolean equalTo(ConnectionResponseContentGoogleOAuth2 other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -173,8 +176,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -186,16 +189,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentGoogleOAuth2Strategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentGoogleOAuth2 other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentGoogleOAuth2Strategy strategy); + } + public interface _FinalStage { ConnectionResponseContentGoogleOAuth2 build(); @@ -211,26 +222,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -245,7 +251,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentGoogleOAuth2Strategy strategy; private Optional options = Optional.empty(); @@ -254,16 +264,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -280,8 +286,8 @@ public Builder from(ConnectionResponseContentGoogleOAuth2 other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -289,6 +295,20 @@ public Builder from(ConnectionResponseContentGoogleOAuth2 other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentGoogleOAuth2Strategy strategy) { @@ -335,19 +355,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -361,16 +368,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -387,19 +401,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -434,8 +435,8 @@ public ConnectionResponseContentGoogleOAuth2 build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 bfe58d819..10727a09f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentInstagram.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentInstagram.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentInstagram.Builder.class) public final class ConnectionResponseContentInstagram - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentInstagram private ConnectionResponseContentInstagram( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentInstagramStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentInstagram( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -157,8 +160,8 @@ private boolean equalTo(ConnectionResponseContentInstagram other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -173,8 +176,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -186,16 +189,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentInstagramStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentInstagram other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentInstagramStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentInstagram build(); @@ -211,26 +222,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -245,7 +251,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentInstagramStrategy strategy; private Optional options = Optional.empty(); @@ -254,16 +264,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -280,8 +286,8 @@ public Builder from(ConnectionResponseContentInstagram other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -289,6 +295,20 @@ public Builder from(ConnectionResponseContentInstagram other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentInstagramStrategy strategy) { @@ -335,19 +355,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -361,16 +368,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -387,19 +401,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -434,8 +435,8 @@ public ConnectionResponseContentInstagram build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 094eb2ce7..2bf0d39a7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentIp.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentIp.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentIp.Builder.class) public final class ConnectionResponseContentIp - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -53,11 +53,11 @@ public final class ConnectionResponseContentIp private ConnectionResponseContentIp( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentIpStrategy strategy, @@ -69,8 +69,8 @@ private ConnectionResponseContentIp( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -93,7 +93,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -105,22 +105,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -165,8 +168,8 @@ private boolean equalTo(ConnectionResponseContentIp other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -182,8 +185,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -196,16 +199,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentIpStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentIp other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentIpStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentIp build(); @@ -221,26 +232,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -259,7 +265,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentIpStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -270,16 +280,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -296,8 +302,8 @@ public Builder from(ConnectionResponseContentIp other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -306,6 +312,20 @@ public Builder from(ConnectionResponseContentIp other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentIpStrategy strategy) { @@ -365,19 +385,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -391,16 +398,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -417,19 +431,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -464,8 +465,8 @@ public ConnectionResponseContentIp build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 221ccf761..bf3cfaa6c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLine.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLine.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentLine.Builder.class) public final class ConnectionResponseContentLine - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentLine private ConnectionResponseContentLine( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentLineStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentLine( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentLine other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentLineStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentLine other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentLineStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentLine build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentLineStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentLine other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentLine other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentLineStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentLine build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 c19472854..9eefe70df 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLinkedin.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLinkedin.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentLinkedin.Builder.class) public final class ConnectionResponseContentLinkedin - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentLinkedin private ConnectionResponseContentLinkedin( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentLinkedinStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentLinkedin( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentLinkedin other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentLinkedinStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentLinkedin other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentLinkedinStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentLinkedin build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentLinkedinStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentLinkedin other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentLinkedin other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentLinkedinStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentLinkedin build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicard.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicard.java deleted file mode 100644 index 7ae332fad..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicard.java +++ /dev/null @@ -1,457 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.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; - -@JsonInclude(JsonInclude.Include.NON_ABSENT) -@JsonDeserialize(builder = ConnectionResponseContentMiicard.Builder.class) -public final class ConnectionResponseContentMiicard - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { - private final Optional authentication; - - private final Optional connectedAccounts; - - private final Optional id; - - private final Optional> realms; - - private final Optional name; - - private final Optional displayName; - - private final Optional> enabledClients; - - private final Optional isDomainConnection; - - private final Optional>> metadata; - - private final ConnectionResponseContentMiicardStrategy strategy; - - private final Optional options; - - private final Map additionalProperties; - - private ConnectionResponseContentMiicard( - Optional authentication, - Optional connectedAccounts, - Optional id, - Optional> realms, - Optional name, - Optional displayName, - Optional> enabledClients, - Optional isDomainConnection, - Optional>> metadata, - ConnectionResponseContentMiicardStrategy strategy, - Optional options, - Map additionalProperties) { - this.authentication = authentication; - this.connectedAccounts = connectedAccounts; - this.id = id; - this.realms = realms; - this.name = name; - this.displayName = displayName; - this.enabledClients = enabledClients; - this.isDomainConnection = isDomainConnection; - this.metadata = metadata; - this.strategy = strategy; - 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("id") - @java.lang.Override - public Optional getId() { - return id; - } - - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("name") - @java.lang.Override - public Optional getName() { - return name; - } - - @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("strategy") - public ConnectionResponseContentMiicardStrategy getStrategy() { - return strategy; - } - - @JsonProperty("options") - public Optional getOptions() { - return options; - } - - @java.lang.Override - public boolean equals(Object other) { - if (this == other) return true; - return other instanceof ConnectionResponseContentMiicard && equalTo((ConnectionResponseContentMiicard) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(ConnectionResponseContentMiicard other) { - return authentication.equals(other.authentication) - && connectedAccounts.equals(other.connectedAccounts) - && id.equals(other.id) - && realms.equals(other.realms) - && name.equals(other.name) - && displayName.equals(other.displayName) - && enabledClients.equals(other.enabledClients) - && isDomainConnection.equals(other.isDomainConnection) - && metadata.equals(other.metadata) - && strategy.equals(other.strategy) - && options.equals(other.options); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash( - this.authentication, - this.connectedAccounts, - this.id, - this.realms, - this.name, - this.displayName, - this.enabledClients, - this.isDomainConnection, - this.metadata, - this.strategy, - this.options); - } - - @java.lang.Override - public String toString() { - return ObjectMappers.stringify(this); - } - - public static StrategyStage builder() { - return new Builder(); - } - - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentMiicardStrategy strategy); - - Builder from(ConnectionResponseContentMiicard other); - } - - public interface _FinalStage { - ConnectionResponseContentMiicard build(); - - _FinalStage additionalProperty(String key, Object value); - - _FinalStage additionalProperties(Map additionalProperties); - - _FinalStage authentication(Optional authentication); - - _FinalStage authentication(ConnectionAuthenticationPurpose authentication); - - _FinalStage connectedAccounts(Optional connectedAccounts); - - _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - - _FinalStage id(Optional id); - - _FinalStage id(String id); - - _FinalStage realms(Optional> realms); - - _FinalStage realms(List realms); - - _FinalStage name(Optional name); - - _FinalStage name(String name); - - _FinalStage displayName(Optional displayName); - - _FinalStage displayName(String displayName); - - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - - _FinalStage isDomainConnection(Optional isDomainConnection); - - _FinalStage isDomainConnection(Boolean isDomainConnection); - - _FinalStage metadata(Optional>> metadata); - - _FinalStage metadata(Map> metadata); - - _FinalStage options(Optional options); - - _FinalStage options(ConnectionOptionsMiicard options); - } - - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { - private ConnectionResponseContentMiicardStrategy strategy; - - private Optional options = Optional.empty(); - - private Optional>> metadata = Optional.empty(); - - private Optional isDomainConnection = Optional.empty(); - - private Optional> enabledClients = Optional.empty(); - - private Optional displayName = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional> realms = Optional.empty(); - - private Optional id = Optional.empty(); - - private Optional connectedAccounts = Optional.empty(); - - private Optional authentication = Optional.empty(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - @java.lang.Override - public Builder from(ConnectionResponseContentMiicard other) { - authentication(other.getAuthentication()); - connectedAccounts(other.getConnectedAccounts()); - id(other.getId()); - realms(other.getRealms()); - name(other.getName()); - displayName(other.getDisplayName()); - enabledClients(other.getEnabledClients()); - isDomainConnection(other.getIsDomainConnection()); - metadata(other.getMetadata()); - strategy(other.getStrategy()); - options(other.getOptions()); - return this; - } - - @java.lang.Override - @JsonSetter("strategy") - public _FinalStage strategy(@NotNull ConnectionResponseContentMiicardStrategy strategy) { - this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); - return this; - } - - @java.lang.Override - public _FinalStage options(ConnectionOptionsMiicard options) { - this.options = Optional.ofNullable(options); - return this; - } - - @java.lang.Override - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public _FinalStage options(Optional options) { - this.options = options; - return this; - } - - @java.lang.Override - public _FinalStage metadata(Map> metadata) { - this.metadata = Optional.ofNullable(metadata); - return this; - } - - @java.lang.Override - @JsonSetter(value = "metadata", nulls = Nulls.SKIP) - public _FinalStage metadata(Optional>> metadata) { - this.metadata = metadata; - return this; - } - - @java.lang.Override - public _FinalStage isDomainConnection(Boolean isDomainConnection) { - this.isDomainConnection = Optional.ofNullable(isDomainConnection); - return this; - } - - @java.lang.Override - @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) - public _FinalStage isDomainConnection(Optional isDomainConnection) { - this.isDomainConnection = isDomainConnection; - return this; - } - - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - - @java.lang.Override - public _FinalStage displayName(String displayName) { - this.displayName = Optional.ofNullable(displayName); - return this; - } - - @java.lang.Override - @JsonSetter(value = "display_name", nulls = Nulls.SKIP) - public _FinalStage displayName(Optional displayName) { - this.displayName = displayName; - return this; - } - - @java.lang.Override - public _FinalStage name(String name) { - this.name = Optional.ofNullable(name); - return this; - } - - @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; - return this; - } - - @java.lang.Override - public _FinalStage realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @java.lang.Override - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public _FinalStage realms(Optional> realms) { - this.realms = realms; - return this; - } - - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - - @java.lang.Override - public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { - this.connectedAccounts = Optional.ofNullable(connectedAccounts); - return this; - } - - @java.lang.Override - @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) - public _FinalStage connectedAccounts(Optional connectedAccounts) { - this.connectedAccounts = connectedAccounts; - return this; - } - - @java.lang.Override - public _FinalStage authentication(ConnectionAuthenticationPurpose authentication) { - this.authentication = Optional.ofNullable(authentication); - return this; - } - - @java.lang.Override - @JsonSetter(value = "authentication", nulls = Nulls.SKIP) - public _FinalStage authentication(Optional authentication) { - this.authentication = authentication; - return this; - } - - @java.lang.Override - public ConnectionResponseContentMiicard build() { - return new ConnectionResponseContentMiicard( - authentication, - connectedAccounts, - id, - realms, - name, - displayName, - enabledClients, - isDomainConnection, - metadata, - strategy, - options, - additionalProperties); - } - - @java.lang.Override - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - @java.lang.Override - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth1.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth1.java index c399f197c..6e395ceb6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth1.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth1.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentOAuth1.Builder.class) public final class ConnectionResponseContentOAuth1 - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentOAuth1 private ConnectionResponseContentOAuth1( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentOAuth1Strategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentOAuth1( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentOAuth1 other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentOAuth1Strategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentOAuth1 other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentOAuth1Strategy strategy); + } + public interface _FinalStage { ConnectionResponseContentOAuth1 build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentOAuth1Strategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentOAuth1 other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentOAuth1 other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentOAuth1Strategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentOAuth1 build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 51383dbfd..9d29726a1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth2.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentOAuth2.Builder.class) public final class ConnectionResponseContentOAuth2 - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentOAuth2 private ConnectionResponseContentOAuth2( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentOAuth2Strategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentOAuth2( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentOAuth2 other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentOAuth2Strategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentOAuth2 other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentOAuth2Strategy strategy); + } + public interface _FinalStage { ConnectionResponseContentOAuth2 build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentOAuth2Strategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentOAuth2 other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentOAuth2 other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentOAuth2Strategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentOAuth2 build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 ce6758da0..48fc0731b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOffice365.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOffice365.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentOffice365.Builder.class) public final class ConnectionResponseContentOffice365 - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -55,11 +55,11 @@ public final class ConnectionResponseContentOffice365 private ConnectionResponseContentOffice365( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentOffice365Strategy strategy, @@ -72,8 +72,8 @@ private ConnectionResponseContentOffice365( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -97,7 +97,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -109,22 +109,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -175,8 +178,8 @@ private boolean equalTo(ConnectionResponseContentOffice365 other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -193,8 +196,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -208,16 +211,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentOffice365Strategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentOffice365 other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentOffice365Strategy strategy); + } + public interface _FinalStage { ConnectionResponseContentOffice365 build(); @@ -233,26 +244,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -275,7 +281,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentOffice365Strategy strategy; private Optional showAsButton = Optional.empty(); @@ -288,16 +298,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -314,8 +320,8 @@ public Builder from(ConnectionResponseContentOffice365 other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -325,6 +331,20 @@ public Builder from(ConnectionResponseContentOffice365 other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentOffice365Strategy strategy) { @@ -397,19 +417,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -423,16 +430,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -449,19 +463,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -496,8 +497,8 @@ public ConnectionResponseContentOffice365 build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 9ada6d240..b665ced4e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java @@ -22,18 +22,17 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentOidc.Builder.class) -public final class ConnectionResponseContentOidc - implements IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { - private final Optional id; +public final class ConnectionResponseContentOidc implements IConnectionResponseCommon, ICreateConnectionCommon { + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +50,11 @@ public final class ConnectionResponseContentOidc private final Map additionalProperties; private ConnectionResponseContentOidc( - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentOidcStrategy strategy, @@ -67,8 +66,8 @@ private ConnectionResponseContentOidc( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -81,7 +80,7 @@ private ConnectionResponseContentOidc( @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -93,22 +92,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -161,8 +163,8 @@ private boolean equalTo(ConnectionResponseContentOidc other) { return id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -178,8 +180,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -194,16 +196,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentOidcStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentOidc other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentOidcStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentOidc build(); @@ -211,26 +221,21 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -257,7 +262,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentOidcStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -272,16 +281,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -292,8 +297,8 @@ public Builder from(ConnectionResponseContentOidc other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -304,6 +309,20 @@ public Builder from(ConnectionResponseContentOidc other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentOidcStrategy strategy) { @@ -389,19 +408,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -415,16 +421,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -441,27 +454,14 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public ConnectionResponseContentOidc build() { return new ConnectionResponseContentOidc( id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 20e9c6737..69e173ed1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOkta.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentOkta.Builder.class) public final class ConnectionResponseContentOkta - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -53,11 +53,11 @@ public final class ConnectionResponseContentOkta private ConnectionResponseContentOkta( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentOktaStrategy strategy, @@ -69,8 +69,8 @@ private ConnectionResponseContentOkta( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -93,7 +93,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -105,22 +105,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -165,8 +168,8 @@ private boolean equalTo(ConnectionResponseContentOkta other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -182,8 +185,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -196,16 +199,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentOktaStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentOkta other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentOktaStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentOkta build(); @@ -221,26 +232,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -259,7 +265,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentOktaStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -270,16 +280,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -296,8 +302,8 @@ public Builder from(ConnectionResponseContentOkta other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -306,6 +312,20 @@ public Builder from(ConnectionResponseContentOkta other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentOktaStrategy strategy) { @@ -365,19 +385,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -391,16 +398,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -417,19 +431,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -464,8 +465,8 @@ public ConnectionResponseContentOkta build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 9732581fb..254b3be43 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypal.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypal.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentPaypal.Builder.class) public final class ConnectionResponseContentPaypal - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentPaypal private ConnectionResponseContentPaypal( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentPaypalStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentPaypal( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentPaypal other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentPaypalStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentPaypal other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentPaypalStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentPaypal build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentPaypalStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentPaypal other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentPaypal other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentPaypalStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentPaypal build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 f44f68a85..00fa7f405 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypalSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypalSandbox.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentPaypalSandbox.Builder.class) public final class ConnectionResponseContentPaypalSandbox - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentPaypalSandbox private ConnectionResponseContentPaypalSandbox( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentPaypalSandboxStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentPaypalSandbox( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -157,8 +160,8 @@ private boolean equalTo(ConnectionResponseContentPaypalSandbox other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -173,8 +176,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -186,16 +189,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentPaypalSandboxStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentPaypalSandbox other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentPaypalSandboxStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentPaypalSandbox build(); @@ -211,26 +222,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -245,7 +251,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentPaypalSandboxStrategy strategy; private Optional options = Optional.empty(); @@ -254,16 +264,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -280,8 +286,8 @@ public Builder from(ConnectionResponseContentPaypalSandbox other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -289,6 +295,20 @@ public Builder from(ConnectionResponseContentPaypalSandbox other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentPaypalSandboxStrategy strategy) { @@ -335,19 +355,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -361,16 +368,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -387,19 +401,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -434,8 +435,8 @@ public ConnectionResponseContentPaypalSandbox build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 bd807f1e5..3f799ae06 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPingFederate.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPingFederate.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentPingFederate.Builder.class) public final class ConnectionResponseContentPingFederate - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -55,11 +55,11 @@ public final class ConnectionResponseContentPingFederate private ConnectionResponseContentPingFederate( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentPingFederateStrategy strategy, @@ -72,8 +72,8 @@ private ConnectionResponseContentPingFederate( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -97,7 +97,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -109,22 +109,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -175,8 +178,8 @@ private boolean equalTo(ConnectionResponseContentPingFederate other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -193,8 +196,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -208,16 +211,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentPingFederateStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentPingFederate other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentPingFederateStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentPingFederate build(); @@ -233,26 +244,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -275,7 +281,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentPingFederateStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -288,16 +298,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -314,8 +320,8 @@ public Builder from(ConnectionResponseContentPingFederate other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -325,6 +331,20 @@ public Builder from(ConnectionResponseContentPingFederate other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentPingFederateStrategy strategy) { @@ -397,19 +417,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -423,16 +430,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -449,19 +463,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -496,8 +497,8 @@ public ConnectionResponseContentPingFederate build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 1902c73fb..2930b305a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPlanningCenter.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPlanningCenter.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentPlanningCenter.Builder.class) public final class ConnectionResponseContentPlanningCenter - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentPlanningCenter private ConnectionResponseContentPlanningCenter( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentPlanningCenterStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentPlanningCenter( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -157,8 +160,8 @@ private boolean equalTo(ConnectionResponseContentPlanningCenter other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -173,8 +176,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -186,16 +189,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentPlanningCenterStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentPlanningCenter other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentPlanningCenterStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentPlanningCenter build(); @@ -211,26 +222,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -245,7 +251,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentPlanningCenterStrategy strategy; private Optional options = Optional.empty(); @@ -254,16 +264,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -280,8 +286,8 @@ public Builder from(ConnectionResponseContentPlanningCenter other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -289,6 +295,20 @@ public Builder from(ConnectionResponseContentPlanningCenter other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentPlanningCenterStrategy strategy) { @@ -335,19 +355,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -361,16 +368,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -387,19 +401,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -434,8 +435,8 @@ public ConnectionResponseContentPlanningCenter build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenren.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenren.java deleted file mode 100644 index 069748d7f..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenren.java +++ /dev/null @@ -1,457 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.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; - -@JsonInclude(JsonInclude.Include.NON_ABSENT) -@JsonDeserialize(builder = ConnectionResponseContentRenren.Builder.class) -public final class ConnectionResponseContentRenren - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { - private final Optional authentication; - - private final Optional connectedAccounts; - - private final Optional id; - - private final Optional> realms; - - private final Optional name; - - private final Optional displayName; - - private final Optional> enabledClients; - - private final Optional isDomainConnection; - - private final Optional>> metadata; - - private final ConnectionResponseContentRenrenStrategy strategy; - - private final Optional options; - - private final Map additionalProperties; - - private ConnectionResponseContentRenren( - Optional authentication, - Optional connectedAccounts, - Optional id, - Optional> realms, - Optional name, - Optional displayName, - Optional> enabledClients, - Optional isDomainConnection, - Optional>> metadata, - ConnectionResponseContentRenrenStrategy strategy, - Optional options, - Map additionalProperties) { - this.authentication = authentication; - this.connectedAccounts = connectedAccounts; - this.id = id; - this.realms = realms; - this.name = name; - this.displayName = displayName; - this.enabledClients = enabledClients; - this.isDomainConnection = isDomainConnection; - this.metadata = metadata; - this.strategy = strategy; - 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("id") - @java.lang.Override - public Optional getId() { - return id; - } - - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("name") - @java.lang.Override - public Optional getName() { - return name; - } - - @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("strategy") - public ConnectionResponseContentRenrenStrategy getStrategy() { - return strategy; - } - - @JsonProperty("options") - public Optional getOptions() { - return options; - } - - @java.lang.Override - public boolean equals(Object other) { - if (this == other) return true; - return other instanceof ConnectionResponseContentRenren && equalTo((ConnectionResponseContentRenren) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(ConnectionResponseContentRenren other) { - return authentication.equals(other.authentication) - && connectedAccounts.equals(other.connectedAccounts) - && id.equals(other.id) - && realms.equals(other.realms) - && name.equals(other.name) - && displayName.equals(other.displayName) - && enabledClients.equals(other.enabledClients) - && isDomainConnection.equals(other.isDomainConnection) - && metadata.equals(other.metadata) - && strategy.equals(other.strategy) - && options.equals(other.options); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash( - this.authentication, - this.connectedAccounts, - this.id, - this.realms, - this.name, - this.displayName, - this.enabledClients, - this.isDomainConnection, - this.metadata, - this.strategy, - this.options); - } - - @java.lang.Override - public String toString() { - return ObjectMappers.stringify(this); - } - - public static StrategyStage builder() { - return new Builder(); - } - - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentRenrenStrategy strategy); - - Builder from(ConnectionResponseContentRenren other); - } - - public interface _FinalStage { - ConnectionResponseContentRenren build(); - - _FinalStage additionalProperty(String key, Object value); - - _FinalStage additionalProperties(Map additionalProperties); - - _FinalStage authentication(Optional authentication); - - _FinalStage authentication(ConnectionAuthenticationPurpose authentication); - - _FinalStage connectedAccounts(Optional connectedAccounts); - - _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - - _FinalStage id(Optional id); - - _FinalStage id(String id); - - _FinalStage realms(Optional> realms); - - _FinalStage realms(List realms); - - _FinalStage name(Optional name); - - _FinalStage name(String name); - - _FinalStage displayName(Optional displayName); - - _FinalStage displayName(String displayName); - - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - - _FinalStage isDomainConnection(Optional isDomainConnection); - - _FinalStage isDomainConnection(Boolean isDomainConnection); - - _FinalStage metadata(Optional>> metadata); - - _FinalStage metadata(Map> metadata); - - _FinalStage options(Optional options); - - _FinalStage options(ConnectionOptionsRenren options); - } - - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { - private ConnectionResponseContentRenrenStrategy strategy; - - private Optional options = Optional.empty(); - - private Optional>> metadata = Optional.empty(); - - private Optional isDomainConnection = Optional.empty(); - - private Optional> enabledClients = Optional.empty(); - - private Optional displayName = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional> realms = Optional.empty(); - - private Optional id = Optional.empty(); - - private Optional connectedAccounts = Optional.empty(); - - private Optional authentication = Optional.empty(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - @java.lang.Override - public Builder from(ConnectionResponseContentRenren other) { - authentication(other.getAuthentication()); - connectedAccounts(other.getConnectedAccounts()); - id(other.getId()); - realms(other.getRealms()); - name(other.getName()); - displayName(other.getDisplayName()); - enabledClients(other.getEnabledClients()); - isDomainConnection(other.getIsDomainConnection()); - metadata(other.getMetadata()); - strategy(other.getStrategy()); - options(other.getOptions()); - return this; - } - - @java.lang.Override - @JsonSetter("strategy") - public _FinalStage strategy(@NotNull ConnectionResponseContentRenrenStrategy strategy) { - this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); - return this; - } - - @java.lang.Override - public _FinalStage options(ConnectionOptionsRenren options) { - this.options = Optional.ofNullable(options); - return this; - } - - @java.lang.Override - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public _FinalStage options(Optional options) { - this.options = options; - return this; - } - - @java.lang.Override - public _FinalStage metadata(Map> metadata) { - this.metadata = Optional.ofNullable(metadata); - return this; - } - - @java.lang.Override - @JsonSetter(value = "metadata", nulls = Nulls.SKIP) - public _FinalStage metadata(Optional>> metadata) { - this.metadata = metadata; - return this; - } - - @java.lang.Override - public _FinalStage isDomainConnection(Boolean isDomainConnection) { - this.isDomainConnection = Optional.ofNullable(isDomainConnection); - return this; - } - - @java.lang.Override - @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) - public _FinalStage isDomainConnection(Optional isDomainConnection) { - this.isDomainConnection = isDomainConnection; - return this; - } - - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - - @java.lang.Override - public _FinalStage displayName(String displayName) { - this.displayName = Optional.ofNullable(displayName); - return this; - } - - @java.lang.Override - @JsonSetter(value = "display_name", nulls = Nulls.SKIP) - public _FinalStage displayName(Optional displayName) { - this.displayName = displayName; - return this; - } - - @java.lang.Override - public _FinalStage name(String name) { - this.name = Optional.ofNullable(name); - return this; - } - - @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; - return this; - } - - @java.lang.Override - public _FinalStage realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @java.lang.Override - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public _FinalStage realms(Optional> realms) { - this.realms = realms; - return this; - } - - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - - @java.lang.Override - public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { - this.connectedAccounts = Optional.ofNullable(connectedAccounts); - return this; - } - - @java.lang.Override - @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) - public _FinalStage connectedAccounts(Optional connectedAccounts) { - this.connectedAccounts = connectedAccounts; - return this; - } - - @java.lang.Override - public _FinalStage authentication(ConnectionAuthenticationPurpose authentication) { - this.authentication = Optional.ofNullable(authentication); - return this; - } - - @java.lang.Override - @JsonSetter(value = "authentication", nulls = Nulls.SKIP) - public _FinalStage authentication(Optional authentication) { - this.authentication = authentication; - return this; - } - - @java.lang.Override - public ConnectionResponseContentRenren build() { - return new ConnectionResponseContentRenren( - authentication, - connectedAccounts, - id, - realms, - name, - displayName, - enabledClients, - isDomainConnection, - metadata, - strategy, - options, - additionalProperties); - } - - @java.lang.Override - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - @java.lang.Override - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforce.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforce.java index b2bacb11a..f5b843e46 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforce.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforce.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentSalesforce.Builder.class) public final class ConnectionResponseContentSalesforce - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentSalesforce private ConnectionResponseContentSalesforce( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentSalesforceStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentSalesforce( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -157,8 +160,8 @@ private boolean equalTo(ConnectionResponseContentSalesforce other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -173,8 +176,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -186,16 +189,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentSalesforceStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentSalesforce other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentSalesforceStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentSalesforce build(); @@ -211,26 +222,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -245,7 +251,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentSalesforceStrategy strategy; private Optional options = Optional.empty(); @@ -254,16 +264,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -280,8 +286,8 @@ public Builder from(ConnectionResponseContentSalesforce other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -289,6 +295,20 @@ public Builder from(ConnectionResponseContentSalesforce other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentSalesforceStrategy strategy) { @@ -335,19 +355,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -361,16 +368,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -387,19 +401,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -434,8 +435,8 @@ public ConnectionResponseContentSalesforce build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 5f35c1979..4664bbd50 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceCommunity.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceCommunity.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentSalesforceCommunity.Builder.class) public final class ConnectionResponseContentSalesforceCommunity - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentSalesforceCommunity private ConnectionResponseContentSalesforceCommunity( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentSalesforceCommunityStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentSalesforceCommunity( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -157,8 +160,8 @@ private boolean equalTo(ConnectionResponseContentSalesforceCommunity other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -173,8 +176,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -186,16 +189,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentSalesforceCommunityStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentSalesforceCommunity other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentSalesforceCommunityStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentSalesforceCommunity build(); @@ -211,26 +222,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -245,7 +251,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentSalesforceCommunityStrategy strategy; private Optional options = Optional.empty(); @@ -254,16 +264,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -280,8 +286,8 @@ public Builder from(ConnectionResponseContentSalesforceCommunity other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -289,6 +295,20 @@ public Builder from(ConnectionResponseContentSalesforceCommunity other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentSalesforceCommunityStrategy strategy) { @@ -335,19 +355,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -361,16 +368,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -387,19 +401,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -434,8 +435,8 @@ public ConnectionResponseContentSalesforceCommunity build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 53b1813cb..6b03e1e13 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceSandbox.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentSalesforceSandbox.Builder.class) public final class ConnectionResponseContentSalesforceSandbox - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentSalesforceSandbox private ConnectionResponseContentSalesforceSandbox( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentSalesforceSandboxStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentSalesforceSandbox( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -157,8 +160,8 @@ private boolean equalTo(ConnectionResponseContentSalesforceSandbox other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -173,8 +176,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -186,16 +189,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentSalesforceSandboxStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentSalesforceSandbox other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentSalesforceSandboxStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentSalesforceSandbox build(); @@ -211,26 +222,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -245,7 +251,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentSalesforceSandboxStrategy strategy; private Optional options = Optional.empty(); @@ -254,16 +264,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -280,8 +286,8 @@ public Builder from(ConnectionResponseContentSalesforceSandbox other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -289,6 +295,20 @@ public Builder from(ConnectionResponseContentSalesforceSandbox other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentSalesforceSandboxStrategy strategy) { @@ -335,19 +355,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -361,16 +368,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -387,19 +401,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -434,8 +435,8 @@ public ConnectionResponseContentSalesforceSandbox build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 c0fc9de24..0f67f9076 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSaml.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentSaml.Builder.class) public final class ConnectionResponseContentSaml - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -55,11 +55,11 @@ public final class ConnectionResponseContentSaml private ConnectionResponseContentSaml( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentSamlStrategy strategy, @@ -72,8 +72,8 @@ private ConnectionResponseContentSaml( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -97,7 +97,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -109,22 +109,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -174,8 +177,8 @@ private boolean equalTo(ConnectionResponseContentSaml other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -192,8 +195,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -207,16 +210,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentSamlStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentSaml other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentSamlStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentSaml build(); @@ -232,26 +243,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -274,7 +280,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentSamlStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -287,16 +297,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -313,8 +319,8 @@ public Builder from(ConnectionResponseContentSaml other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -324,6 +330,20 @@ public Builder from(ConnectionResponseContentSaml other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentSamlStrategy strategy) { @@ -396,19 +416,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -422,16 +429,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -448,19 +462,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -495,8 +496,8 @@ public ConnectionResponseContentSaml build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 aaea4d956..bdfd9414e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSharepoint.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSharepoint.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentSharepoint.Builder.class) public final class ConnectionResponseContentSharepoint - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -53,11 +53,11 @@ public final class ConnectionResponseContentSharepoint private ConnectionResponseContentSharepoint( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentSharepointStrategy strategy, @@ -69,8 +69,8 @@ private ConnectionResponseContentSharepoint( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -93,7 +93,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -105,22 +105,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -166,8 +169,8 @@ private boolean equalTo(ConnectionResponseContentSharepoint other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -183,8 +186,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -197,16 +200,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentSharepointStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentSharepoint other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentSharepointStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentSharepoint build(); @@ -222,26 +233,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -260,7 +266,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentSharepointStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -271,16 +281,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -297,8 +303,8 @@ public Builder from(ConnectionResponseContentSharepoint other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -307,6 +313,20 @@ public Builder from(ConnectionResponseContentSharepoint other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentSharepointStrategy strategy) { @@ -366,19 +386,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -392,16 +399,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -418,19 +432,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -465,8 +466,8 @@ public ConnectionResponseContentSharepoint build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 4074e2fd2..b33addf8a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShop.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShop.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentShop.Builder.class) public final class ConnectionResponseContentShop - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentShop private ConnectionResponseContentShop( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentShopStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentShop( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentShop other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentShopStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentShop other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentShopStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentShop build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentShopStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentShop other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentShop other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentShopStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentShop build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 0c86093f8..b07ce6e31 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShopify.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShopify.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentShopify.Builder.class) public final class ConnectionResponseContentShopify - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentShopify private ConnectionResponseContentShopify( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentShopifyStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentShopify( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentShopify other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentShopifyStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentShopify other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentShopifyStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentShopify build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentShopifyStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentShopify other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentShopify other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentShopifyStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentShopify build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 f8f4532da..879db62ad 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSms.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentSms.Builder.class) public final class ConnectionResponseContentSms - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentSms private ConnectionResponseContentSms( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentSmsStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentSms( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentSms other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentSmsStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentSms other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentSmsStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentSms build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentSmsStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentSms other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentSms other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentSmsStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentSms build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 e979aced3..701aacd9d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSoundcloud.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSoundcloud.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentSoundcloud.Builder.class) public final class ConnectionResponseContentSoundcloud - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentSoundcloud private ConnectionResponseContentSoundcloud( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentSoundcloudStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentSoundcloud( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -157,8 +160,8 @@ private boolean equalTo(ConnectionResponseContentSoundcloud other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -173,8 +176,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -186,16 +189,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentSoundcloudStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentSoundcloud other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentSoundcloudStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentSoundcloud build(); @@ -211,26 +222,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -245,7 +251,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentSoundcloudStrategy strategy; private Optional options = Optional.empty(); @@ -254,16 +264,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -280,8 +286,8 @@ public Builder from(ConnectionResponseContentSoundcloud other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -289,6 +295,20 @@ public Builder from(ConnectionResponseContentSoundcloud other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentSoundcloudStrategy strategy) { @@ -335,19 +355,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -361,16 +368,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -387,19 +401,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -434,8 +435,8 @@ public ConnectionResponseContentSoundcloud build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 cc8f7aa16..c4b78f38d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentThirtySevenSignals.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentThirtySevenSignals.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentThirtySevenSignals.Builder.class) public final class ConnectionResponseContentThirtySevenSignals - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentThirtySevenSignals private ConnectionResponseContentThirtySevenSignals( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentThirtySevenSignalsStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentThirtySevenSignals( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -157,8 +160,8 @@ private boolean equalTo(ConnectionResponseContentThirtySevenSignals other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -173,8 +176,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -186,16 +189,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentThirtySevenSignalsStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentThirtySevenSignals other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentThirtySevenSignalsStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentThirtySevenSignals build(); @@ -211,26 +222,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -245,7 +251,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentThirtySevenSignalsStrategy strategy; private Optional options = Optional.empty(); @@ -254,16 +264,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -280,8 +286,8 @@ public Builder from(ConnectionResponseContentThirtySevenSignals other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -289,6 +295,20 @@ public Builder from(ConnectionResponseContentThirtySevenSignals other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentThirtySevenSignalsStrategy strategy) { @@ -335,19 +355,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -361,16 +368,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -387,19 +401,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -434,8 +435,8 @@ public ConnectionResponseContentThirtySevenSignals build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 d5b0dfcc4..196c10616 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTwitter.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTwitter.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentTwitter.Builder.class) public final class ConnectionResponseContentTwitter - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentTwitter private ConnectionResponseContentTwitter( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentTwitterStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentTwitter( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentTwitter other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentTwitterStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentTwitter other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentTwitterStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentTwitter build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentTwitterStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentTwitter other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentTwitter other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentTwitterStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentTwitter build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 23d173133..edc2f685e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentUntappd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentUntappd.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentUntappd.Builder.class) public final class ConnectionResponseContentUntappd - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentUntappd private ConnectionResponseContentUntappd( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentUntappdStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentUntappd( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentUntappd other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentUntappdStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentUntappd other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentUntappdStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentUntappd build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentUntappdStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentUntappd other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentUntappd other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentUntappdStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentUntappd build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 ed49082c0..60144a7cc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentVkontakte.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentVkontakte.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentVkontakte.Builder.class) public final class ConnectionResponseContentVkontakte - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentVkontakte private ConnectionResponseContentVkontakte( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentVkontakteStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentVkontakte( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -157,8 +160,8 @@ private boolean equalTo(ConnectionResponseContentVkontakte other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -173,8 +176,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -186,16 +189,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentVkontakteStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentVkontakte other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentVkontakteStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentVkontakte build(); @@ -211,26 +222,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -245,7 +251,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentVkontakteStrategy strategy; private Optional options = Optional.empty(); @@ -254,16 +264,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -280,8 +286,8 @@ public Builder from(ConnectionResponseContentVkontakte other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -289,6 +295,20 @@ public Builder from(ConnectionResponseContentVkontakte other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentVkontakteStrategy strategy) { @@ -335,19 +355,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -361,16 +368,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -387,19 +401,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -434,8 +435,8 @@ public ConnectionResponseContentVkontakte build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 bdc4abf18..0a2c280ec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWeibo.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWeibo.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentWeibo.Builder.class) public final class ConnectionResponseContentWeibo - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentWeibo private ConnectionResponseContentWeibo( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentWeiboStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentWeibo( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentWeibo other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentWeiboStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentWeibo other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentWeiboStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentWeibo build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentWeiboStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentWeibo other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentWeibo other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentWeiboStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentWeibo build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 0b6a88b2c..2a83ff47f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWindowsLive.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWindowsLive.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentWindowsLive.Builder.class) public final class ConnectionResponseContentWindowsLive - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentWindowsLive private ConnectionResponseContentWindowsLive( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentWindowsLiveStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentWindowsLive( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -157,8 +160,8 @@ private boolean equalTo(ConnectionResponseContentWindowsLive other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -173,8 +176,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -186,16 +189,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentWindowsLiveStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentWindowsLive other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentWindowsLiveStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentWindowsLive build(); @@ -211,26 +222,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -245,7 +251,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentWindowsLiveStrategy strategy; private Optional options = Optional.empty(); @@ -254,16 +264,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -280,8 +286,8 @@ public Builder from(ConnectionResponseContentWindowsLive other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -289,6 +295,20 @@ public Builder from(ConnectionResponseContentWindowsLive other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentWindowsLiveStrategy strategy) { @@ -335,19 +355,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -361,16 +368,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -387,19 +401,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -434,8 +435,8 @@ public ConnectionResponseContentWindowsLive build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 75737c392..d3613d8d1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWordpress.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWordpress.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentWordpress.Builder.class) public final class ConnectionResponseContentWordpress - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentWordpress private ConnectionResponseContentWordpress( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentWordpressStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentWordpress( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -157,8 +160,8 @@ private boolean equalTo(ConnectionResponseContentWordpress other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -173,8 +176,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -186,16 +189,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentWordpressStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentWordpress other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentWordpressStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentWordpress build(); @@ -211,26 +222,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -245,7 +251,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentWordpressStrategy strategy; private Optional options = Optional.empty(); @@ -254,16 +264,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -280,8 +286,8 @@ public Builder from(ConnectionResponseContentWordpress other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -289,6 +295,20 @@ public Builder from(ConnectionResponseContentWordpress other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentWordpressStrategy strategy) { @@ -335,19 +355,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -361,16 +368,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -387,19 +401,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -434,8 +435,8 @@ public ConnectionResponseContentWordpress build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 6c1d2b7f9..f41177c59 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYahoo.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYahoo.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentYahoo.Builder.class) public final class ConnectionResponseContentYahoo - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentYahoo private ConnectionResponseContentYahoo( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentYahooStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentYahoo( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentYahoo other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentYahooStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentYahoo other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentYahooStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentYahoo build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentYahooStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentYahoo other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentYahoo other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentYahooStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentYahoo build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammer.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammer.java deleted file mode 100644 index b6e356c0e..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammer.java +++ /dev/null @@ -1,457 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.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; - -@JsonInclude(JsonInclude.Include.NON_ABSENT) -@JsonDeserialize(builder = ConnectionResponseContentYammer.Builder.class) -public final class ConnectionResponseContentYammer - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { - private final Optional authentication; - - private final Optional connectedAccounts; - - private final Optional id; - - private final Optional> realms; - - private final Optional name; - - private final Optional displayName; - - private final Optional> enabledClients; - - private final Optional isDomainConnection; - - private final Optional>> metadata; - - private final ConnectionResponseContentYammerStrategy strategy; - - private final Optional options; - - private final Map additionalProperties; - - private ConnectionResponseContentYammer( - Optional authentication, - Optional connectedAccounts, - Optional id, - Optional> realms, - Optional name, - Optional displayName, - Optional> enabledClients, - Optional isDomainConnection, - Optional>> metadata, - ConnectionResponseContentYammerStrategy strategy, - Optional options, - Map additionalProperties) { - this.authentication = authentication; - this.connectedAccounts = connectedAccounts; - this.id = id; - this.realms = realms; - this.name = name; - this.displayName = displayName; - this.enabledClients = enabledClients; - this.isDomainConnection = isDomainConnection; - this.metadata = metadata; - this.strategy = strategy; - 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("id") - @java.lang.Override - public Optional getId() { - return id; - } - - @JsonProperty("realms") - @java.lang.Override - public Optional> getRealms() { - return realms; - } - - @JsonProperty("name") - @java.lang.Override - public Optional getName() { - return name; - } - - @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("strategy") - public ConnectionResponseContentYammerStrategy getStrategy() { - return strategy; - } - - @JsonProperty("options") - public Optional getOptions() { - return options; - } - - @java.lang.Override - public boolean equals(Object other) { - if (this == other) return true; - return other instanceof ConnectionResponseContentYammer && equalTo((ConnectionResponseContentYammer) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(ConnectionResponseContentYammer other) { - return authentication.equals(other.authentication) - && connectedAccounts.equals(other.connectedAccounts) - && id.equals(other.id) - && realms.equals(other.realms) - && name.equals(other.name) - && displayName.equals(other.displayName) - && enabledClients.equals(other.enabledClients) - && isDomainConnection.equals(other.isDomainConnection) - && metadata.equals(other.metadata) - && strategy.equals(other.strategy) - && options.equals(other.options); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash( - this.authentication, - this.connectedAccounts, - this.id, - this.realms, - this.name, - this.displayName, - this.enabledClients, - this.isDomainConnection, - this.metadata, - this.strategy, - this.options); - } - - @java.lang.Override - public String toString() { - return ObjectMappers.stringify(this); - } - - public static StrategyStage builder() { - return new Builder(); - } - - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentYammerStrategy strategy); - - Builder from(ConnectionResponseContentYammer other); - } - - public interface _FinalStage { - ConnectionResponseContentYammer build(); - - _FinalStage additionalProperty(String key, Object value); - - _FinalStage additionalProperties(Map additionalProperties); - - _FinalStage authentication(Optional authentication); - - _FinalStage authentication(ConnectionAuthenticationPurpose authentication); - - _FinalStage connectedAccounts(Optional connectedAccounts); - - _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - - _FinalStage id(Optional id); - - _FinalStage id(String id); - - _FinalStage realms(Optional> realms); - - _FinalStage realms(List realms); - - _FinalStage name(Optional name); - - _FinalStage name(String name); - - _FinalStage displayName(Optional displayName); - - _FinalStage displayName(String displayName); - - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - - _FinalStage isDomainConnection(Optional isDomainConnection); - - _FinalStage isDomainConnection(Boolean isDomainConnection); - - _FinalStage metadata(Optional>> metadata); - - _FinalStage metadata(Map> metadata); - - _FinalStage options(Optional options); - - _FinalStage options(ConnectionOptionsYammer options); - } - - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { - private ConnectionResponseContentYammerStrategy strategy; - - private Optional options = Optional.empty(); - - private Optional>> metadata = Optional.empty(); - - private Optional isDomainConnection = Optional.empty(); - - private Optional> enabledClients = Optional.empty(); - - private Optional displayName = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional> realms = Optional.empty(); - - private Optional id = Optional.empty(); - - private Optional connectedAccounts = Optional.empty(); - - private Optional authentication = Optional.empty(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - @java.lang.Override - public Builder from(ConnectionResponseContentYammer other) { - authentication(other.getAuthentication()); - connectedAccounts(other.getConnectedAccounts()); - id(other.getId()); - realms(other.getRealms()); - name(other.getName()); - displayName(other.getDisplayName()); - enabledClients(other.getEnabledClients()); - isDomainConnection(other.getIsDomainConnection()); - metadata(other.getMetadata()); - strategy(other.getStrategy()); - options(other.getOptions()); - return this; - } - - @java.lang.Override - @JsonSetter("strategy") - public _FinalStage strategy(@NotNull ConnectionResponseContentYammerStrategy strategy) { - this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); - return this; - } - - @java.lang.Override - public _FinalStage options(ConnectionOptionsYammer options) { - this.options = Optional.ofNullable(options); - return this; - } - - @java.lang.Override - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public _FinalStage options(Optional options) { - this.options = options; - return this; - } - - @java.lang.Override - public _FinalStage metadata(Map> metadata) { - this.metadata = Optional.ofNullable(metadata); - return this; - } - - @java.lang.Override - @JsonSetter(value = "metadata", nulls = Nulls.SKIP) - public _FinalStage metadata(Optional>> metadata) { - this.metadata = metadata; - return this; - } - - @java.lang.Override - public _FinalStage isDomainConnection(Boolean isDomainConnection) { - this.isDomainConnection = Optional.ofNullable(isDomainConnection); - return this; - } - - @java.lang.Override - @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) - public _FinalStage isDomainConnection(Optional isDomainConnection) { - this.isDomainConnection = isDomainConnection; - return this; - } - - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - - @java.lang.Override - public _FinalStage displayName(String displayName) { - this.displayName = Optional.ofNullable(displayName); - return this; - } - - @java.lang.Override - @JsonSetter(value = "display_name", nulls = Nulls.SKIP) - public _FinalStage displayName(Optional displayName) { - this.displayName = displayName; - return this; - } - - @java.lang.Override - public _FinalStage name(String name) { - this.name = Optional.ofNullable(name); - return this; - } - - @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; - return this; - } - - @java.lang.Override - public _FinalStage realms(List realms) { - this.realms = Optional.ofNullable(realms); - return this; - } - - @java.lang.Override - @JsonSetter(value = "realms", nulls = Nulls.SKIP) - public _FinalStage realms(Optional> realms) { - this.realms = realms; - return this; - } - - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - - @java.lang.Override - public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { - this.connectedAccounts = Optional.ofNullable(connectedAccounts); - return this; - } - - @java.lang.Override - @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) - public _FinalStage connectedAccounts(Optional connectedAccounts) { - this.connectedAccounts = connectedAccounts; - return this; - } - - @java.lang.Override - public _FinalStage authentication(ConnectionAuthenticationPurpose authentication) { - this.authentication = Optional.ofNullable(authentication); - return this; - } - - @java.lang.Override - @JsonSetter(value = "authentication", nulls = Nulls.SKIP) - public _FinalStage authentication(Optional authentication) { - this.authentication = authentication; - return this; - } - - @java.lang.Override - public ConnectionResponseContentYammer build() { - return new ConnectionResponseContentYammer( - authentication, - connectedAccounts, - id, - realms, - name, - displayName, - enabledClients, - isDomainConnection, - metadata, - strategy, - options, - additionalProperties); - } - - @java.lang.Override - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - @java.lang.Override - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammerStrategy.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammerStrategy.java deleted file mode 100644 index 32c5a53b9..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammerStrategy.java +++ /dev/null @@ -1,75 +0,0 @@ -/** - * 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 ConnectionResponseContentYammerStrategy { - public static final ConnectionResponseContentYammerStrategy YAMMER = - new ConnectionResponseContentYammerStrategy(Value.YAMMER, "yammer"); - - private final Value value; - - private final String string; - - ConnectionResponseContentYammerStrategy(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 ConnectionResponseContentYammerStrategy - && this.string.equals(((ConnectionResponseContentYammerStrategy) other).string)); - } - - @java.lang.Override - public int hashCode() { - return this.string.hashCode(); - } - - public T visit(Visitor visitor) { - switch (value) { - case YAMMER: - return visitor.visitYammer(); - case UNKNOWN: - default: - return visitor.visitUnknown(string); - } - } - - @JsonCreator(mode = JsonCreator.Mode.DELEGATING) - public static ConnectionResponseContentYammerStrategy valueOf(String value) { - switch (value) { - case "yammer": - return YAMMER; - default: - return new ConnectionResponseContentYammerStrategy(Value.UNKNOWN, value); - } - } - - public enum Value { - YAMMER, - - UNKNOWN - } - - public interface Visitor { - T visitYammer(); - - T visitUnknown(String unknownType); - } -} 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 a46f44e5d..2e9b80661 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYandex.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYandex.java @@ -23,21 +23,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ConnectionResponseContentYandex.Builder.class) public final class ConnectionResponseContentYandex - implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon, IConnectionCommon { + implements IConnectionPurposes, IConnectionResponseCommon, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional id; + private final String id; private final Optional> realms; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -51,11 +51,11 @@ public final class ConnectionResponseContentYandex private ConnectionResponseContentYandex( Optional authentication, Optional connectedAccounts, - Optional id, + String id, Optional> realms, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, ConnectionResponseContentYandexStrategy strategy, @@ -66,8 +66,8 @@ private ConnectionResponseContentYandex( this.id = id; this.realms = realms; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -89,7 +89,7 @@ public Optional getConnectedAccounts() { @JsonProperty("id") @java.lang.Override - public Optional getId() { + public String getId() { return id; } @@ -101,22 +101,25 @@ public Optional> getRealms() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -156,8 +159,8 @@ private boolean equalTo(ConnectionResponseContentYandex other) { && id.equals(other.id) && realms.equals(other.realms) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -172,8 +175,8 @@ public int hashCode() { this.id, this.realms, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -185,16 +188,24 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static IdStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull ConnectionResponseContentYandexStrategy strategy); + public interface IdStage { + NameStage id(@NotNull String id); Builder from(ConnectionResponseContentYandex other); } + public interface NameStage { + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull ConnectionResponseContentYandexStrategy strategy); + } + public interface _FinalStage { ConnectionResponseContentYandex build(); @@ -210,26 +221,21 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage id(Optional id); - - _FinalStage id(String id); - _FinalStage realms(Optional> realms); _FinalStage realms(List realms); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -244,7 +250,11 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + private ConnectionResponseContentYandexStrategy strategy; private Optional options = Optional.empty(); @@ -253,16 +263,12 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional> realms = Optional.empty(); - private Optional id = Optional.empty(); - private Optional connectedAccounts = Optional.empty(); private Optional authentication = Optional.empty(); @@ -279,8 +285,8 @@ public Builder from(ConnectionResponseContentYandex other) { id(other.getId()); realms(other.getRealms()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -288,6 +294,20 @@ public Builder from(ConnectionResponseContentYandex other) { return this; } + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull ConnectionResponseContentYandexStrategy strategy) { @@ -334,19 +354,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -360,16 +367,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -386,19 +400,6 @@ public _FinalStage realms(Optional> realms) { return this; } - @java.lang.Override - public _FinalStage id(String id) { - this.id = Optional.ofNullable(id); - return this; - } - - @java.lang.Override - @JsonSetter(value = "id", nulls = Nulls.SKIP) - public _FinalStage id(Optional id) { - this.id = id; - return this; - } - @java.lang.Override public _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts) { this.connectedAccounts = Optional.ofNullable(connectedAccounts); @@ -433,8 +434,8 @@ public ConnectionResponseContentYandex build() { id, realms, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionStrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionStrategyEnum.java index a69407be8..9a57042b7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionStrategyEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionStrategyEnum.java @@ -40,8 +40,6 @@ public final class ConnectionStrategyEnum { public static final ConnectionStrategyEnum SALESFORCE_SANDBOX = new ConnectionStrategyEnum(Value.SALESFORCE_SANDBOX, "salesforce-sandbox"); - public static final ConnectionStrategyEnum MIICARD = new ConnectionStrategyEnum(Value.MIICARD, "miicard"); - public static final ConnectionStrategyEnum FACEBOOK = new ConnectionStrategyEnum(Value.FACEBOOK, "facebook"); public static final ConnectionStrategyEnum OAUTH1 = new ConnectionStrategyEnum(Value.OAUTH1, "oauth1"); @@ -64,8 +62,6 @@ public final class ConnectionStrategyEnum { public static final ConnectionStrategyEnum SMS = new ConnectionStrategyEnum(Value.SMS, "sms"); - public static final ConnectionStrategyEnum AOL = new ConnectionStrategyEnum(Value.AOL, "aol"); - public static final ConnectionStrategyEnum TWITTER = new ConnectionStrategyEnum(Value.TWITTER, "twitter"); public static final ConnectionStrategyEnum WINDOWSLIVE = @@ -82,8 +78,6 @@ public final class ConnectionStrategyEnum { public static final ConnectionStrategyEnum PAYPAL_SANDBOX = new ConnectionStrategyEnum(Value.PAYPAL_SANDBOX, "paypal-sandbox"); - public static final ConnectionStrategyEnum RENREN = new ConnectionStrategyEnum(Value.RENREN, "renren"); - public static final ConnectionStrategyEnum SAMLP = new ConnectionStrategyEnum(Value.SAMLP, "samlp"); public static final ConnectionStrategyEnum DROPBOX = new ConnectionStrategyEnum(Value.DROPBOX, "dropbox"); @@ -103,13 +97,8 @@ public final class ConnectionStrategyEnum { public static final ConnectionStrategyEnum WAAD = new ConnectionStrategyEnum(Value.WAAD, "waad"); - public static final ConnectionStrategyEnum THECITY_SANDBOX = - new ConnectionStrategyEnum(Value.THECITY_SANDBOX, "thecity-sandbox"); - public static final ConnectionStrategyEnum OIDC = new ConnectionStrategyEnum(Value.OIDC, "oidc"); - public static final ConnectionStrategyEnum YAMMER = new ConnectionStrategyEnum(Value.YAMMER, "yammer"); - public static final ConnectionStrategyEnum EVERNOTE_SANDBOX = new ConnectionStrategyEnum(Value.EVERNOTE_SANDBOX, "evernote-sandbox"); @@ -143,8 +132,6 @@ public final class ConnectionStrategyEnum { public static final ConnectionStrategyEnum LINKEDIN = new ConnectionStrategyEnum(Value.LINKEDIN, "linkedin"); - public static final ConnectionStrategyEnum THECITY = new ConnectionStrategyEnum(Value.THECITY, "thecity"); - private final Value value; private final String string; @@ -208,8 +195,6 @@ public T visit(Visitor visitor) { return visitor.visitShopify(); case SALESFORCE_SANDBOX: return visitor.visitSalesforceSandbox(); - case MIICARD: - return visitor.visitMiicard(); case FACEBOOK: return visitor.visitFacebook(); case OAUTH1: @@ -232,8 +217,6 @@ public T visit(Visitor visitor) { return visitor.visitOffice365(); case SMS: return visitor.visitSms(); - case AOL: - return visitor.visitAol(); case TWITTER: return visitor.visitTwitter(); case WINDOWSLIVE: @@ -248,8 +231,6 @@ public T visit(Visitor visitor) { return visitor.visitBitly(); case PAYPAL_SANDBOX: return visitor.visitPaypalSandbox(); - case RENREN: - return visitor.visitRenren(); case SAMLP: return visitor.visitSamlp(); case DROPBOX: @@ -266,12 +247,8 @@ public T visit(Visitor visitor) { return visitor.visitThirtysevensignals(); case WAAD: return visitor.visitWaad(); - case THECITY_SANDBOX: - return visitor.visitThecitySandbox(); case OIDC: return visitor.visitOidc(); - case YAMMER: - return visitor.visitYammer(); case EVERNOTE_SANDBOX: return visitor.visitEvernoteSandbox(); case SALESFORCE_COMMUNITY: @@ -302,8 +279,6 @@ public T visit(Visitor visitor) { return visitor.visitPaypal(); case LINKEDIN: return visitor.visitLinkedin(); - case THECITY: - return visitor.visitThecity(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -343,8 +318,6 @@ public static ConnectionStrategyEnum valueOf(String value) { return SHOPIFY; case "salesforce-sandbox": return SALESFORCE_SANDBOX; - case "miicard": - return MIICARD; case "facebook": return FACEBOOK; case "oauth1": @@ -367,8 +340,6 @@ public static ConnectionStrategyEnum valueOf(String value) { return OFFICE365; case "sms": return SMS; - case "aol": - return AOL; case "twitter": return TWITTER; case "windowslive": @@ -383,8 +354,6 @@ public static ConnectionStrategyEnum valueOf(String value) { return BITLY; case "paypal-sandbox": return PAYPAL_SANDBOX; - case "renren": - return RENREN; case "samlp": return SAMLP; case "dropbox": @@ -401,12 +370,8 @@ public static ConnectionStrategyEnum valueOf(String value) { return THIRTYSEVENSIGNALS; case "waad": return WAAD; - case "thecity-sandbox": - return THECITY_SANDBOX; case "oidc": return OIDC; - case "yammer": - return YAMMER; case "evernote-sandbox": return EVERNOTE_SANDBOX; case "salesforce-community": @@ -437,8 +402,6 @@ public static ConnectionStrategyEnum valueOf(String value) { return PAYPAL; case "linkedin": return LINKEDIN; - case "thecity": - return THECITY; default: return new ConnectionStrategyEnum(Value.UNKNOWN, value); } @@ -457,8 +420,6 @@ public enum Value { BITBUCKET, - AOL, - AUTH0OIDC, AUTH0, @@ -503,8 +464,6 @@ public enum Value { LINKEDIN, - MIICARD, - OAUTH1, OAUTH2, @@ -523,8 +482,6 @@ public enum Value { PLANNINGCENTER, - RENREN, - SALESFORCE_COMMUNITY, SALESFORCE_SANDBOX, @@ -543,10 +500,6 @@ public enum Value { SOUNDCLOUD, - THECITY_SANDBOX, - - THECITY, - THIRTYSEVENSIGNALS, TWITTER, @@ -565,8 +518,6 @@ public enum Value { YAHOO, - YAMMER, - YANDEX, AUTH0ADLDAP, @@ -587,8 +538,6 @@ public interface Visitor { T visitBitbucket(); - T visitAol(); - T visitAuth0Oidc(); T visitAuth0(); @@ -633,8 +582,6 @@ public interface Visitor { T visitLinkedin(); - T visitMiicard(); - T visitOauth1(); T visitOauth2(); @@ -653,8 +600,6 @@ public interface Visitor { T visitPlanningcenter(); - T visitRenren(); - T visitSalesforceCommunity(); T visitSalesforceSandbox(); @@ -673,10 +618,6 @@ public interface Visitor { T visitSoundcloud(); - T visitThecitySandbox(); - - T visitThecity(); - T visitThirtysevensignals(); T visitTwitter(); @@ -695,8 +636,6 @@ public interface Visitor { T visitYahoo(); - T visitYammer(); - T visitYandex(); T visitAuth0Adldap(); diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java index cd8b4ef4c..e6e2dccd3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateClientGrantRequestContent.Builder.class) public final class CreateClientGrantRequestContent { - private final String clientId; + private final Optional clientId; private final String audience; @@ -41,7 +41,7 @@ public final class CreateClientGrantRequestContent { private final Map additionalProperties; private CreateClientGrantRequestContent( - String clientId, + Optional clientId, String audience, Optional organizationUsage, Optional allowAnyOrganization, @@ -65,7 +65,7 @@ private CreateClientGrantRequestContent( * @return ID of the client. */ @JsonProperty("client_id") - public String getClientId() { + public Optional getClientId() { return clientId; } @@ -159,24 +159,17 @@ public String toString() { return ObjectMappers.stringify(this); } - public static ClientIdStage builder() { + public static AudienceStage builder() { return new Builder(); } - public interface ClientIdStage { - /** - *

ID of the client.

- */ - AudienceStage clientId(@NotNull String clientId); - - Builder from(CreateClientGrantRequestContent other); - } - public interface AudienceStage { /** *

The audience (API identifier) of this client grant

*/ _FinalStage audience(@NotNull String audience); + + Builder from(CreateClientGrantRequestContent other); } public interface _FinalStage { @@ -186,6 +179,13 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); + /** + *

ID of the client.

+ */ + _FinalStage clientId(Optional clientId); + + _FinalStage clientId(String clientId); + _FinalStage organizationUsage(Optional organizationUsage); _FinalStage organizationUsage(ClientGrantOrganizationUsageEnum organizationUsage); @@ -224,9 +224,7 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements ClientIdStage, AudienceStage, _FinalStage { - private String clientId; - + public static final class Builder implements AudienceStage, _FinalStage { private String audience; private Optional allowAllScopes = Optional.empty(); @@ -241,6 +239,8 @@ public static final class Builder implements ClientIdStage, AudienceStage, _Fina private Optional organizationUsage = Optional.empty(); + private Optional clientId = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -259,18 +259,6 @@ public Builder from(CreateClientGrantRequestContent other) { return this; } - /** - *

ID of the client.

- *

ID of the client.

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

The audience (API identifier) of this client grant

*

The audience (API identifier) of this client grant

@@ -389,6 +377,26 @@ public _FinalStage organizationUsage(Optional return this; } + /** + *

ID of the client.

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

ID of the client.

+ */ + @java.lang.Override + @JsonSetter(value = "client_id", nulls = Nulls.SKIP) + public _FinalStage clientId(Optional clientId) { + this.clientId = clientId; + return this; + } + @java.lang.Override public CreateClientGrantRequestContent build() { return new CreateClientGrantRequestContent( diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java index 5d630af0d..51c78d797 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java @@ -64,7 +64,7 @@ public final class CreateClientResponseContent { private final Optional jwtConfiguration; - private final Optional> signingKeys; + private final OptionalNullable> signingKeys; private final OptionalNullable encryptionKey; @@ -130,6 +130,14 @@ public final class CreateClientResponseContent { private final Optional> asyncApprovalNotificationChannels; + private final Optional externalMetadataType; + + private final Optional externalMetadataCreatedBy; + + private final Optional externalClientId; + + private final Optional jwksUri; + private final Map additionalProperties; private CreateClientResponseContent( @@ -153,7 +161,7 @@ private CreateClientResponseContent( Optional oidcLogout, Optional> grantTypes, Optional jwtConfiguration, - Optional> signingKeys, + OptionalNullable> signingKeys, OptionalNullable encryptionKey, Optional sso, Optional ssoDisabled, @@ -186,6 +194,10 @@ private CreateClientResponseContent( Optional expressConfiguration, Optional resourceServerIdentifier, Optional> asyncApprovalNotificationChannels, + Optional externalMetadataType, + Optional externalMetadataCreatedBy, + Optional externalClientId, + Optional jwksUri, Map additionalProperties) { this.clientId = clientId; this.tenant = tenant; @@ -240,6 +252,10 @@ private CreateClientResponseContent( this.expressConfiguration = expressConfiguration; this.resourceServerIdentifier = resourceServerIdentifier; this.asyncApprovalNotificationChannels = asyncApprovalNotificationChannels; + this.externalMetadataType = externalMetadataType; + this.externalMetadataCreatedBy = externalMetadataCreatedBy; + this.externalClientId = externalClientId; + this.jwksUri = jwksUri; this.additionalProperties = additionalProperties; } @@ -395,8 +411,12 @@ public Optional getJwtConfiguration() { return jwtConfiguration; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("signing_keys") - public Optional> getSigningKeys() { + public OptionalNullable> getSigningKeys() { + if (signingKeys == null) { + return OptionalNullable.absent(); + } return signingKeys; } @@ -634,12 +654,44 @@ public Optional> getAsyncApprovalNo return asyncApprovalNotificationChannels; } + @JsonProperty("external_metadata_type") + public Optional getExternalMetadataType() { + return externalMetadataType; + } + + @JsonProperty("external_metadata_created_by") + public Optional getExternalMetadataCreatedBy() { + return externalMetadataCreatedBy; + } + + /** + * @return An alternate client identifier to be used during authorization flows. Only supports CIMD-based client identifiers. + */ + @JsonProperty("external_client_id") + public Optional getExternalClientId() { + return externalClientId; + } + + /** + * @return URL for the JSON Web Key Set (JWKS) containing the public keys used for private_key_jwt authentication. Only present for CIMD clients using private_key_jwt authentication. + */ + @JsonProperty("jwks_uri") + public Optional getJwksUri() { + return jwksUri; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_transfer") private OptionalNullable _getSessionTransfer() { return sessionTransfer; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("signing_keys") + private OptionalNullable> _getSigningKeys() { + return signingKeys; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("encryption_key") private OptionalNullable _getEncryptionKey() { @@ -741,7 +793,11 @@ private boolean equalTo(CreateClientResponseContent other) { && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) && resourceServerIdentifier.equals(other.resourceServerIdentifier) - && asyncApprovalNotificationChannels.equals(other.asyncApprovalNotificationChannels); + && asyncApprovalNotificationChannels.equals(other.asyncApprovalNotificationChannels) + && externalMetadataType.equals(other.externalMetadataType) + && externalMetadataCreatedBy.equals(other.externalMetadataCreatedBy) + && externalClientId.equals(other.externalClientId) + && jwksUri.equals(other.jwksUri); } @java.lang.Override @@ -799,7 +855,11 @@ public int hashCode() { this.tokenQuota, this.expressConfiguration, this.resourceServerIdentifier, - this.asyncApprovalNotificationChannels); + this.asyncApprovalNotificationChannels, + this.externalMetadataType, + this.externalMetadataCreatedBy, + this.externalClientId, + this.jwksUri); } @java.lang.Override @@ -853,7 +913,7 @@ public static final class Builder { private Optional jwtConfiguration = Optional.empty(); - private Optional> signingKeys = Optional.empty(); + private OptionalNullable> signingKeys = OptionalNullable.absent(); private OptionalNullable encryptionKey = OptionalNullable.absent(); @@ -920,6 +980,14 @@ public static final class Builder { private Optional> asyncApprovalNotificationChannels = Optional.empty(); + private Optional externalMetadataType = Optional.empty(); + + private Optional externalMetadataCreatedBy = Optional.empty(); + + private Optional externalClientId = Optional.empty(); + + private Optional jwksUri = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -979,6 +1047,10 @@ public Builder from(CreateClientResponseContent other) { expressConfiguration(other.getExpressConfiguration()); resourceServerIdentifier(other.getResourceServerIdentifier()); asyncApprovalNotificationChannels(other.getAsyncApprovalNotificationChannels()); + externalMetadataType(other.getExternalMetadataType()); + externalMetadataCreatedBy(other.getExternalMetadataCreatedBy()); + externalClientId(other.getExternalClientId()); + jwksUri(other.getJwksUri()); return this; } @@ -1272,13 +1344,33 @@ public Builder jwtConfiguration(ClientJwtConfiguration jwtConfiguration) { } @JsonSetter(value = "signing_keys", nulls = Nulls.SKIP) - public Builder signingKeys(Optional> signingKeys) { + public Builder signingKeys(@Nullable OptionalNullable> signingKeys) { this.signingKeys = signingKeys; return this; } public Builder signingKeys(List signingKeys) { - this.signingKeys = Optional.ofNullable(signingKeys); + this.signingKeys = OptionalNullable.of(signingKeys); + return this; + } + + public Builder signingKeys(Optional> signingKeys) { + if (signingKeys.isPresent()) { + this.signingKeys = OptionalNullable.of(signingKeys.get()); + } else { + this.signingKeys = OptionalNullable.absent(); + } + return this; + } + + public Builder signingKeys(com.auth0.client.mgmt.core.Nullable> signingKeys) { + if (signingKeys.isNull()) { + this.signingKeys = OptionalNullable.ofNull(); + } else if (signingKeys.isEmpty()) { + this.signingKeys = OptionalNullable.absent(); + } else { + this.signingKeys = OptionalNullable.of(signingKeys.get()); + } return this; } @@ -1815,6 +1907,57 @@ public Builder asyncApprovalNotificationChannels( return this; } + @JsonSetter(value = "external_metadata_type", nulls = Nulls.SKIP) + public Builder externalMetadataType(Optional externalMetadataType) { + this.externalMetadataType = externalMetadataType; + return this; + } + + public Builder externalMetadataType(ClientExternalMetadataTypeEnum externalMetadataType) { + this.externalMetadataType = Optional.ofNullable(externalMetadataType); + return this; + } + + @JsonSetter(value = "external_metadata_created_by", nulls = Nulls.SKIP) + public Builder externalMetadataCreatedBy( + Optional externalMetadataCreatedBy) { + this.externalMetadataCreatedBy = externalMetadataCreatedBy; + return this; + } + + public Builder externalMetadataCreatedBy(ClientExternalMetadataCreatedByEnum externalMetadataCreatedBy) { + this.externalMetadataCreatedBy = Optional.ofNullable(externalMetadataCreatedBy); + return this; + } + + /** + *

An alternate client identifier to be used during authorization flows. Only supports CIMD-based client identifiers.

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

URL for the JSON Web Key Set (JWKS) containing the public keys used for private_key_jwt authentication. Only present for CIMD clients using private_key_jwt authentication.

+ */ + @JsonSetter(value = "jwks_uri", nulls = Nulls.SKIP) + public Builder jwksUri(Optional jwksUri) { + this.jwksUri = jwksUri; + return this; + } + + public Builder jwksUri(String jwksUri) { + this.jwksUri = Optional.ofNullable(jwksUri); + return this; + } + public CreateClientResponseContent build() { return new CreateClientResponseContent( clientId, @@ -1870,6 +2013,10 @@ public CreateClientResponseContent build() { expressConfiguration, resourceServerIdentifier, asyncApprovalNotificationChannels, + externalMetadataType, + externalMetadataCreatedBy, + externalClientId, + jwksUri, 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 9ccac95ce..8b1b600c3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionCommon.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionCommon.java @@ -18,16 +18,17 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionCommon.Builder.class) -public final class CreateConnectionCommon implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionCommon implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -35,15 +36,15 @@ public final class CreateConnectionCommon implements ICreateConnectionCommon, IC private final Map additionalProperties; private CreateConnectionCommon( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.additionalProperties = additionalProperties; @@ -51,22 +52,25 @@ private CreateConnectionCommon( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -92,15 +96,15 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionCommon other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata); } @java.lang.Override public int hashCode() { - return Objects.hash(this.name, this.displayName, this.enabledClients, this.isDomainConnection, this.metadata); + return Objects.hash(this.name, this.enabledClients, this.displayName, this.isDomainConnection, this.metadata); } @java.lang.Override @@ -108,101 +112,149 @@ public String toString() { return ObjectMappers.stringify(this); } - public static Builder builder() { + public static NameStage builder() { return new Builder(); } - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder { - private Optional name = Optional.empty(); + public interface NameStage { + _FinalStage name(@NotNull String name); - private Optional displayName = Optional.empty(); + Builder from(CreateConnectionCommon other); + } - private Optional> enabledClients = Optional.empty(); + public interface _FinalStage { + CreateConnectionCommon build(); - private Optional isDomainConnection = Optional.empty(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional>> metadata); + + _FinalStage metadata(Map> metadata); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements NameStage, _FinalStage { + private String name; private Optional>> metadata = Optional.empty(); + private Optional isDomainConnection = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); private Builder() {} + @java.lang.Override public Builder from(CreateConnectionCommon other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); return this; } - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public Builder name(Optional name) { - this.name = name; + @java.lang.Override + @JsonSetter("name") + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } - public Builder name(String name) { - this.name = Optional.ofNullable(name); - return this; - } - - @JsonSetter(value = "display_name", nulls = Nulls.SKIP) - public Builder displayName(Optional displayName) { - this.displayName = displayName; + @java.lang.Override + public _FinalStage metadata(Map> metadata) { + this.metadata = Optional.ofNullable(metadata); return this; } - public Builder displayName(String displayName) { - this.displayName = Optional.ofNullable(displayName); + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional>> metadata) { + this.metadata = metadata; return this; } - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public Builder enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); return this; } - public Builder enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; return this; } - @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) - public Builder isDomainConnection(Optional isDomainConnection) { - this.isDomainConnection = isDomainConnection; + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); return this; } - public Builder isDomainConnection(Boolean isDomainConnection) { - this.isDomainConnection = Optional.ofNullable(isDomainConnection); + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; return this; } - @JsonSetter(value = "metadata", nulls = Nulls.SKIP) - public Builder metadata(Optional>> metadata) { - this.metadata = metadata; + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

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

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } + @java.lang.Override public CreateConnectionCommon build() { return new CreateConnectionCommon( - name, displayName, enabledClients, isDomainConnection, metadata, additionalProperties); + name, enabledClients, displayName, isDomainConnection, metadata, additionalProperties); } + @java.lang.Override public Builder additionalProperty(String key, Object value) { this.additionalProperties.put(key, value); return this; } + @java.lang.Override public Builder additionalProperties(Map additionalProperties) { this.additionalProperties.putAll(additionalProperties); return this; diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java index 93f11a0dc..00de20fc5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java @@ -101,7 +101,7 @@ public Optional getOptions() { } /** - * @return DEPRECATED property. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. */ @JsonProperty("enabled_clients") public Optional> getEnabledClients() { @@ -229,7 +229,7 @@ public interface _FinalStage { _FinalStage options(ConnectionPropertiesOptions options); /** - *

DEPRECATED property. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

*/ _FinalStage enabledClients(Optional> enabledClients); @@ -433,7 +433,7 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { } /** - *

DEPRECATED property. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -443,7 +443,7 @@ public _FinalStage enabledClients(List enabledClients) { } /** - *

DEPRECATED property. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

*/ @java.lang.Override @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) 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 f639769e0..032f118c1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAd.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentAd.Builder.class) -public final class CreateConnectionRequestContentAd implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentAd implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentAd implements ICreateConnection private final Map additionalProperties; private CreateConnectionRequestContentAd( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentAdStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentAd( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -111,8 +114,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentAd other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -123,8 +126,8 @@ private boolean equalTo(CreateConnectionRequestContentAd other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -136,16 +139,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentAdStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentAd other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentAdStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentAd build(); @@ -153,18 +160,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -179,7 +185,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentAdStrategy strategy; private Optional options = Optional.empty(); @@ -188,11 +196,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -202,8 +208,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentAd other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -211,6 +217,13 @@ public Builder from(CreateConnectionRequestContentAd other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentAdStrategy strategy) { @@ -257,19 +270,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -283,16 +283,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -300,8 +307,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentAd build() { return new CreateConnectionRequestContentAd( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 2c2566fc5..7b427e324 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAdfs.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAdfs.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentAdfs.Builder.class) -public final class CreateConnectionRequestContentAdfs implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentAdfs implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -42,9 +42,9 @@ public final class CreateConnectionRequestContentAdfs implements ICreateConnecti private final Map additionalProperties; private CreateConnectionRequestContentAdfs( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentAdfsStrategy strategy, @@ -52,8 +52,8 @@ private CreateConnectionRequestContentAdfs( Optional showAsButton, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -64,22 +64,25 @@ private CreateConnectionRequestContentAdfs( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -121,8 +124,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentAdfs other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -134,8 +137,8 @@ private boolean equalTo(CreateConnectionRequestContentAdfs other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -148,16 +151,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentAdfsStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentAdfs other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentAdfsStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentAdfs build(); @@ -165,18 +172,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -195,7 +201,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentAdfsStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -206,11 +214,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -220,8 +226,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentAdfs other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -230,6 +236,13 @@ public Builder from(CreateConnectionRequestContentAdfs other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentAdfsStrategy strategy) { @@ -289,19 +302,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -315,16 +315,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -332,8 +339,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentAdfs build() { return new CreateConnectionRequestContentAdfs( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 c6d9ddecf..771740e7b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAmazon.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAmazon.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentAmazon.Builder.class) -public final class CreateConnectionRequestContentAmazon implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentAmazon implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentAmazon implements ICreateConnec private final Map additionalProperties; private CreateConnectionRequestContentAmazon( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentAmazonStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentAmazon( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentAmazon other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentAmazon other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentAmazonStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentAmazon other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentAmazonStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentAmazon build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentAmazonStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentAmazon other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentAmazon other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentAmazonStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentAmazon build() { return new CreateConnectionRequestContentAmazon( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAol.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAol.java deleted file mode 100644 index fdce69bc5..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAol.java +++ /dev/null @@ -1,324 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.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; - -@JsonInclude(JsonInclude.Include.NON_ABSENT) -@JsonDeserialize(builder = CreateConnectionRequestContentAol.Builder.class) -public final class CreateConnectionRequestContentAol implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; - - private final Optional> enabledClients; - - private final Optional isDomainConnection; - - private final Optional>> metadata; - - private final CreateConnectionRequestContentAolStrategy strategy; - - private final Optional options; - - private final Map additionalProperties; - - private CreateConnectionRequestContentAol( - Optional name, - Optional displayName, - Optional> enabledClients, - Optional isDomainConnection, - Optional>> metadata, - CreateConnectionRequestContentAolStrategy strategy, - Optional options, - Map additionalProperties) { - this.name = name; - this.displayName = displayName; - this.enabledClients = enabledClients; - this.isDomainConnection = isDomainConnection; - this.metadata = metadata; - this.strategy = strategy; - this.options = options; - this.additionalProperties = additionalProperties; - } - - @JsonProperty("name") - @java.lang.Override - public Optional getName() { - return name; - } - - @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("strategy") - public CreateConnectionRequestContentAolStrategy getStrategy() { - return strategy; - } - - @JsonProperty("options") - public Optional getOptions() { - return options; - } - - @java.lang.Override - public boolean equals(Object other) { - if (this == other) return true; - return other instanceof CreateConnectionRequestContentAol && equalTo((CreateConnectionRequestContentAol) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(CreateConnectionRequestContentAol other) { - return name.equals(other.name) - && displayName.equals(other.displayName) - && enabledClients.equals(other.enabledClients) - && isDomainConnection.equals(other.isDomainConnection) - && metadata.equals(other.metadata) - && strategy.equals(other.strategy) - && options.equals(other.options); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash( - this.name, - this.displayName, - this.enabledClients, - this.isDomainConnection, - this.metadata, - this.strategy, - this.options); - } - - @java.lang.Override - public String toString() { - return ObjectMappers.stringify(this); - } - - public static StrategyStage builder() { - return new Builder(); - } - - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentAolStrategy strategy); - - Builder from(CreateConnectionRequestContentAol other); - } - - public interface _FinalStage { - CreateConnectionRequestContentAol build(); - - _FinalStage additionalProperty(String key, Object value); - - _FinalStage additionalProperties(Map additionalProperties); - - _FinalStage name(Optional name); - - _FinalStage name(String name); - - _FinalStage displayName(Optional displayName); - - _FinalStage displayName(String displayName); - - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - - _FinalStage isDomainConnection(Optional isDomainConnection); - - _FinalStage isDomainConnection(Boolean isDomainConnection); - - _FinalStage metadata(Optional>> metadata); - - _FinalStage metadata(Map> metadata); - - _FinalStage options(Optional options); - - _FinalStage options(ConnectionOptionsAol options); - } - - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { - private CreateConnectionRequestContentAolStrategy strategy; - - private Optional options = Optional.empty(); - - private Optional>> metadata = Optional.empty(); - - private Optional isDomainConnection = Optional.empty(); - - private Optional> enabledClients = Optional.empty(); - - private Optional displayName = Optional.empty(); - - private Optional name = Optional.empty(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - @java.lang.Override - public Builder from(CreateConnectionRequestContentAol other) { - name(other.getName()); - displayName(other.getDisplayName()); - enabledClients(other.getEnabledClients()); - isDomainConnection(other.getIsDomainConnection()); - metadata(other.getMetadata()); - strategy(other.getStrategy()); - options(other.getOptions()); - return this; - } - - @java.lang.Override - @JsonSetter("strategy") - public _FinalStage strategy(@NotNull CreateConnectionRequestContentAolStrategy strategy) { - this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); - return this; - } - - @java.lang.Override - public _FinalStage options(ConnectionOptionsAol options) { - this.options = Optional.ofNullable(options); - return this; - } - - @java.lang.Override - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public _FinalStage options(Optional options) { - this.options = options; - return this; - } - - @java.lang.Override - public _FinalStage metadata(Map> metadata) { - this.metadata = Optional.ofNullable(metadata); - return this; - } - - @java.lang.Override - @JsonSetter(value = "metadata", nulls = Nulls.SKIP) - public _FinalStage metadata(Optional>> metadata) { - this.metadata = metadata; - return this; - } - - @java.lang.Override - public _FinalStage isDomainConnection(Boolean isDomainConnection) { - this.isDomainConnection = Optional.ofNullable(isDomainConnection); - return this; - } - - @java.lang.Override - @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) - public _FinalStage isDomainConnection(Optional isDomainConnection) { - this.isDomainConnection = isDomainConnection; - return this; - } - - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - - @java.lang.Override - public _FinalStage displayName(String displayName) { - this.displayName = Optional.ofNullable(displayName); - return this; - } - - @java.lang.Override - @JsonSetter(value = "display_name", nulls = Nulls.SKIP) - public _FinalStage displayName(Optional displayName) { - this.displayName = displayName; - return this; - } - - @java.lang.Override - public _FinalStage name(String name) { - this.name = Optional.ofNullable(name); - return this; - } - - @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; - return this; - } - - @java.lang.Override - public CreateConnectionRequestContentAol build() { - return new CreateConnectionRequestContentAol( - name, - displayName, - enabledClients, - isDomainConnection, - metadata, - strategy, - options, - additionalProperties); - } - - @java.lang.Override - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - @java.lang.Override - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAolStrategy.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAolStrategy.java deleted file mode 100644 index 730b9ef1f..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAolStrategy.java +++ /dev/null @@ -1,75 +0,0 @@ -/** - * 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 CreateConnectionRequestContentAolStrategy { - public static final CreateConnectionRequestContentAolStrategy AOL = - new CreateConnectionRequestContentAolStrategy(Value.AOL, "aol"); - - private final Value value; - - private final String string; - - CreateConnectionRequestContentAolStrategy(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 CreateConnectionRequestContentAolStrategy - && this.string.equals(((CreateConnectionRequestContentAolStrategy) other).string)); - } - - @java.lang.Override - public int hashCode() { - return this.string.hashCode(); - } - - public T visit(Visitor visitor) { - switch (value) { - case AOL: - return visitor.visitAol(); - case UNKNOWN: - default: - return visitor.visitUnknown(string); - } - } - - @JsonCreator(mode = JsonCreator.Mode.DELEGATING) - public static CreateConnectionRequestContentAolStrategy valueOf(String value) { - switch (value) { - case "aol": - return AOL; - default: - return new CreateConnectionRequestContentAolStrategy(Value.UNKNOWN, value); - } - } - - public enum Value { - AOL, - - UNKNOWN - } - - public interface Visitor { - T visitAol(); - - T visitUnknown(String unknownType); - } -} 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 c49bac302..73af97478 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentApple.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentApple.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentApple.Builder.class) -public final class CreateConnectionRequestContentApple implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentApple implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentApple implements ICreateConnect private final Map additionalProperties; private CreateConnectionRequestContentApple( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentAppleStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentApple( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentApple other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentApple other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentAppleStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentApple other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentAppleStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentApple build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentAppleStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentApple other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentApple other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentAppleStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentApple build() { return new CreateConnectionRequestContentApple( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 e79789909..7b9f0fd7a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentAuth0.Builder.class) -public final class CreateConnectionRequestContentAuth0 implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentAuth0 implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -42,9 +42,9 @@ public final class CreateConnectionRequestContentAuth0 implements ICreateConnect private final Map additionalProperties; private CreateConnectionRequestContentAuth0( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentAuth0Strategy strategy, @@ -52,8 +52,8 @@ private CreateConnectionRequestContentAuth0( Optional> realms, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -64,22 +64,25 @@ private CreateConnectionRequestContentAuth0( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -121,8 +124,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentAuth0 other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -134,8 +137,8 @@ private boolean equalTo(CreateConnectionRequestContentAuth0 other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -148,16 +151,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentAuth0Strategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentAuth0 other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentAuth0Strategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentAuth0 build(); @@ -165,18 +172,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -195,7 +201,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentAuth0Strategy strategy; private Optional> realms = Optional.empty(); @@ -206,11 +214,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -220,8 +226,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentAuth0 other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -230,6 +236,13 @@ public Builder from(CreateConnectionRequestContentAuth0 other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentAuth0Strategy strategy) { @@ -289,19 +302,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -315,16 +315,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -332,8 +339,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentAuth0 build() { return new CreateConnectionRequestContentAuth0( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 55fa163b0..e255366e3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0Oidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0Oidc.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentAuth0Oidc.Builder.class) -public final class CreateConnectionRequestContentAuth0Oidc implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentAuth0Oidc implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentAuth0Oidc implements ICreateCon private final Map additionalProperties; private CreateConnectionRequestContentAuth0Oidc( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentAuth0OidcStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentAuth0Oidc( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentAuth0Oidc other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentAuth0Oidc other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentAuth0OidcStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentAuth0Oidc other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentAuth0OidcStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentAuth0Oidc build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentAuth0OidcStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentAuth0Oidc other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentAuth0Oidc other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentAuth0OidcStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentAuth0Oidc build() { return new CreateConnectionRequestContentAuth0Oidc( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 16ed09ebf..3333dea33 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAzureAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAzureAd.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentAzureAd.Builder.class) -public final class CreateConnectionRequestContentAzureAd implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentAzureAd implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -42,9 +42,9 @@ public final class CreateConnectionRequestContentAzureAd implements ICreateConne private final Map additionalProperties; private CreateConnectionRequestContentAzureAd( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentAzureAdStrategy strategy, @@ -52,8 +52,8 @@ private CreateConnectionRequestContentAzureAd( Optional showAsButton, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -64,22 +64,25 @@ private CreateConnectionRequestContentAzureAd( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -121,8 +124,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentAzureAd other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -134,8 +137,8 @@ private boolean equalTo(CreateConnectionRequestContentAzureAd other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -148,16 +151,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentAzureAdStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentAzureAd other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentAzureAdStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentAzureAd build(); @@ -165,18 +172,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -195,7 +201,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentAzureAdStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -206,11 +214,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -220,8 +226,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentAzureAd other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -230,6 +236,13 @@ public Builder from(CreateConnectionRequestContentAzureAd other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentAzureAdStrategy strategy) { @@ -289,19 +302,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -315,16 +315,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -332,8 +339,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentAzureAd build() { return new CreateConnectionRequestContentAzureAd( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 5c7bdd69b..d2ba8d86d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBaidu.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBaidu.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentBaidu.Builder.class) -public final class CreateConnectionRequestContentBaidu implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentBaidu implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentBaidu implements ICreateConnect private final Map additionalProperties; private CreateConnectionRequestContentBaidu( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentBaiduStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentBaidu( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentBaidu other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentBaidu other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentBaiduStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentBaidu other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentBaiduStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentBaidu build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentBaiduStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentBaidu other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentBaidu other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentBaiduStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentBaidu build() { return new CreateConnectionRequestContentBaidu( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 9b433c517..50ae27f01 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitbucket.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitbucket.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentBitbucket.Builder.class) -public final class CreateConnectionRequestContentBitbucket implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentBitbucket implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentBitbucket implements ICreateCon private final Map additionalProperties; private CreateConnectionRequestContentBitbucket( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentBitbucketStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentBitbucket( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentBitbucket other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentBitbucket other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentBitbucketStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentBitbucket other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentBitbucketStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentBitbucket build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentBitbucketStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentBitbucket other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentBitbucket other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentBitbucketStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentBitbucket build() { return new CreateConnectionRequestContentBitbucket( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 22f885d1f..e11f9eb74 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitly.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitly.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentBitly.Builder.class) -public final class CreateConnectionRequestContentBitly implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentBitly implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentBitly implements ICreateConnect private final Map additionalProperties; private CreateConnectionRequestContentBitly( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentBitlyStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentBitly( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentBitly other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentBitly other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentBitlyStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentBitly other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentBitlyStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentBitly build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentBitlyStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentBitly other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentBitly other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentBitlyStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentBitly build() { return new CreateConnectionRequestContentBitly( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 860ecbbe9..64f5d475e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBox.java @@ -22,18 +22,17 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentBox.Builder.class) -public final class CreateConnectionRequestContentBox - implements IConnectionPurposes, ICreateConnectionCommon, IConnectionCommon { +public final class CreateConnectionRequestContentBox implements IConnectionPurposes, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -47,9 +46,9 @@ public final class CreateConnectionRequestContentBox private CreateConnectionRequestContentBox( Optional authentication, Optional connectedAccounts, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentBoxStrategy strategy, @@ -58,8 +57,8 @@ private CreateConnectionRequestContentBox( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -81,22 +80,25 @@ public Optional getConnectedAccounts() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -134,8 +136,8 @@ private boolean equalTo(CreateConnectionRequestContentBox other) { return authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -148,8 +150,8 @@ public int hashCode() { this.authentication, this.connectedAccounts, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -161,16 +163,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentBoxStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentBox other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentBoxStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentBox build(); @@ -186,18 +192,17 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -212,7 +217,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentBoxStrategy strategy; private Optional options = Optional.empty(); @@ -221,11 +228,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional connectedAccounts = Optional.empty(); @@ -241,8 +246,8 @@ public Builder from(CreateConnectionRequestContentBox other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -250,6 +255,13 @@ public Builder from(CreateConnectionRequestContentBox other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentBoxStrategy strategy) { @@ -296,19 +308,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -322,16 +321,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -367,8 +373,8 @@ public CreateConnectionRequestContentBox build() { authentication, connectedAccounts, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 a6e3ce796..6ef2c1387 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentCustom.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentCustom.Builder.class) -public final class CreateConnectionRequestContentCustom implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentCustom implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentCustom implements ICreateConnec private final Map additionalProperties; private CreateConnectionRequestContentCustom( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentCustomStrategy strategy, Optional> options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentCustom( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentCustom other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentCustom other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentCustomStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentCustom other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentCustomStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentCustom build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentCustomStrategy strategy; private Optional> options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentCustom other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentCustom other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentCustomStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentCustom build() { return new CreateConnectionRequestContentCustom( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 b838c74cd..ced13c31a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDaccount.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDaccount.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentDaccount.Builder.class) -public final class CreateConnectionRequestContentDaccount implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentDaccount implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentDaccount implements ICreateConn private final Map additionalProperties; private CreateConnectionRequestContentDaccount( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentDaccountStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentDaccount( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentDaccount other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentDaccount other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentDaccountStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentDaccount other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentDaccountStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentDaccount build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentDaccountStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentDaccount other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentDaccount other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentDaccountStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentDaccount build() { return new CreateConnectionRequestContentDaccount( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 c68e1a78f..265094b90 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDropbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDropbox.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentDropbox.Builder.class) -public final class CreateConnectionRequestContentDropbox implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentDropbox implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentDropbox implements ICreateConne private final Map additionalProperties; private CreateConnectionRequestContentDropbox( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentDropboxStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentDropbox( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentDropbox other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentDropbox other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentDropboxStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentDropbox other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentDropboxStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentDropbox build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentDropboxStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentDropbox other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentDropbox other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentDropboxStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentDropbox build() { return new CreateConnectionRequestContentDropbox( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 0f514b6f2..6274629a0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDwolla.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDwolla.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentDwolla.Builder.class) -public final class CreateConnectionRequestContentDwolla implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentDwolla implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentDwolla implements ICreateConnec private final Map additionalProperties; private CreateConnectionRequestContentDwolla( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentDwollaStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentDwolla( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentDwolla other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentDwolla other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentDwollaStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentDwolla other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentDwollaStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentDwolla build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentDwollaStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentDwolla other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentDwolla other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentDwollaStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentDwolla build() { return new CreateConnectionRequestContentDwolla( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 89a5ad6b6..1a27d719e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEmail.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentEmail.Builder.class) -public final class CreateConnectionRequestContentEmail implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentEmail implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentEmail implements ICreateConnect private final Map additionalProperties; private CreateConnectionRequestContentEmail( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentEmailStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentEmail( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentEmail other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentEmail other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentEmailStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentEmail other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentEmailStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentEmail build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentEmailStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentEmail other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentEmail other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentEmailStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentEmail build() { return new CreateConnectionRequestContentEmail( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 3ce5c0199..e4a217a99 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernote.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernote.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentEvernote.Builder.class) -public final class CreateConnectionRequestContentEvernote implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentEvernote implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentEvernote implements ICreateConn private final Map additionalProperties; private CreateConnectionRequestContentEvernote( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentEvernoteStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentEvernote( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentEvernote other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentEvernote other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentEvernoteStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentEvernote other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentEvernoteStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentEvernote build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentEvernoteStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentEvernote other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentEvernote other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentEvernoteStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentEvernote build() { return new CreateConnectionRequestContentEvernote( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 328679494..fddd86fb8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernoteSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernoteSandbox.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentEvernoteSandbox.Builder.class) -public final class CreateConnectionRequestContentEvernoteSandbox implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentEvernoteSandbox implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentEvernoteSandbox implements ICre private final Map additionalProperties; private CreateConnectionRequestContentEvernoteSandbox( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentEvernoteSandboxStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentEvernoteSandbox( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentEvernoteSandbox other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentEvernoteSandbox other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentEvernoteSandboxStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentEvernoteSandbox other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentEvernoteSandboxStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentEvernoteSandbox build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentEvernoteSandboxStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentEvernoteSandbox other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentEvernoteSandbox other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentEvernoteSandboxStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentEvernoteSandbox build() { return new CreateConnectionRequestContentEvernoteSandbox( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 310bee1e9..4f277b573 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentExact.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentExact.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentExact.Builder.class) -public final class CreateConnectionRequestContentExact implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentExact implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentExact implements ICreateConnect private final Map additionalProperties; private CreateConnectionRequestContentExact( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentExactStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentExact( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentExact other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentExact other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentExactStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentExact other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentExactStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentExact build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentExactStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentExact other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentExact other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentExactStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentExact build() { return new CreateConnectionRequestContentExact( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 7a6c29ce3..de68b3619 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFacebook.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFacebook.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentFacebook.Builder.class) -public final class CreateConnectionRequestContentFacebook implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentFacebook implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentFacebook implements ICreateConn private final Map additionalProperties; private CreateConnectionRequestContentFacebook( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentFacebookStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentFacebook( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentFacebook other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentFacebook other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentFacebookStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentFacebook other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentFacebookStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentFacebook build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentFacebookStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentFacebook other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentFacebook other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentFacebookStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentFacebook build() { return new CreateConnectionRequestContentFacebook( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 af2a012cd..a1a9c4edc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFitbit.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFitbit.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentFitbit.Builder.class) -public final class CreateConnectionRequestContentFitbit implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentFitbit implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentFitbit implements ICreateConnec private final Map additionalProperties; private CreateConnectionRequestContentFitbit( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentFitbitStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentFitbit( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentFitbit other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentFitbit other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentFitbitStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentFitbit other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentFitbitStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentFitbit build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentFitbitStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentFitbit other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentFitbit other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentFitbitStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentFitbit build() { return new CreateConnectionRequestContentFitbit( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 07cdc1673..cfdc7c1c9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFlickr.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFlickr.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentFlickr.Builder.class) -public final class CreateConnectionRequestContentFlickr implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentFlickr implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentFlickr implements ICreateConnec private final Map additionalProperties; private CreateConnectionRequestContentFlickr( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentFlickrStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentFlickr( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentFlickr other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentFlickr other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentFlickrStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentFlickr other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentFlickrStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentFlickr build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentFlickrStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentFlickr other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentFlickr other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentFlickrStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentFlickr build() { return new CreateConnectionRequestContentFlickr( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 c4f025799..db6ed10ff 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGitHub.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGitHub.java @@ -22,18 +22,17 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentGitHub.Builder.class) -public final class CreateConnectionRequestContentGitHub - implements IConnectionPurposes, ICreateConnectionCommon, IConnectionCommon { +public final class CreateConnectionRequestContentGitHub implements IConnectionPurposes, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -47,9 +46,9 @@ public final class CreateConnectionRequestContentGitHub private CreateConnectionRequestContentGitHub( Optional authentication, Optional connectedAccounts, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentGitHubStrategy strategy, @@ -58,8 +57,8 @@ private CreateConnectionRequestContentGitHub( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -81,22 +80,25 @@ public Optional getConnectedAccounts() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -135,8 +137,8 @@ private boolean equalTo(CreateConnectionRequestContentGitHub other) { return authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -149,8 +151,8 @@ public int hashCode() { this.authentication, this.connectedAccounts, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -162,16 +164,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentGitHubStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentGitHub other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentGitHubStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentGitHub build(); @@ -187,18 +193,17 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -213,7 +218,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentGitHubStrategy strategy; private Optional options = Optional.empty(); @@ -222,11 +229,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional connectedAccounts = Optional.empty(); @@ -242,8 +247,8 @@ public Builder from(CreateConnectionRequestContentGitHub other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -251,6 +256,13 @@ public Builder from(CreateConnectionRequestContentGitHub other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentGitHubStrategy strategy) { @@ -297,19 +309,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -323,16 +322,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -368,8 +374,8 @@ public CreateConnectionRequestContentGitHub build() { authentication, connectedAccounts, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 f2d48d065..be3feb526 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleApps.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleApps.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentGoogleApps.Builder.class) -public final class CreateConnectionRequestContentGoogleApps implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentGoogleApps implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -42,9 +42,9 @@ public final class CreateConnectionRequestContentGoogleApps implements ICreateCo private final Map additionalProperties; private CreateConnectionRequestContentGoogleApps( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentGoogleAppsStrategy strategy, @@ -52,8 +52,8 @@ private CreateConnectionRequestContentGoogleApps( Optional showAsButton, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -64,22 +64,25 @@ private CreateConnectionRequestContentGoogleApps( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -121,8 +124,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentGoogleApps other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -134,8 +137,8 @@ private boolean equalTo(CreateConnectionRequestContentGoogleApps other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -148,16 +151,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentGoogleAppsStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentGoogleApps other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentGoogleAppsStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentGoogleApps build(); @@ -165,18 +172,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -195,7 +201,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentGoogleAppsStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -206,11 +214,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -220,8 +226,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentGoogleApps other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -230,6 +236,13 @@ public Builder from(CreateConnectionRequestContentGoogleApps other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentGoogleAppsStrategy strategy) { @@ -289,19 +302,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -315,16 +315,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -332,8 +339,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentGoogleApps build() { return new CreateConnectionRequestContentGoogleApps( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 a9ff7e3e3..ff0b1c3c8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleOAuth2.java @@ -22,18 +22,17 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentGoogleOAuth2.Builder.class) -public final class CreateConnectionRequestContentGoogleOAuth2 - implements IConnectionPurposes, ICreateConnectionCommon, IConnectionCommon { +public final class CreateConnectionRequestContentGoogleOAuth2 implements IConnectionPurposes, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -47,9 +46,9 @@ public final class CreateConnectionRequestContentGoogleOAuth2 private CreateConnectionRequestContentGoogleOAuth2( Optional authentication, Optional connectedAccounts, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentGoogleOAuth2Strategy strategy, @@ -58,8 +57,8 @@ private CreateConnectionRequestContentGoogleOAuth2( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -81,22 +80,25 @@ public Optional getConnectedAccounts() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -135,8 +137,8 @@ private boolean equalTo(CreateConnectionRequestContentGoogleOAuth2 other) { return authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -149,8 +151,8 @@ public int hashCode() { this.authentication, this.connectedAccounts, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -162,16 +164,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentGoogleOAuth2Strategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentGoogleOAuth2 other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentGoogleOAuth2Strategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentGoogleOAuth2 build(); @@ -187,18 +193,17 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -213,7 +218,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentGoogleOAuth2Strategy strategy; private Optional options = Optional.empty(); @@ -222,11 +229,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional connectedAccounts = Optional.empty(); @@ -242,8 +247,8 @@ public Builder from(CreateConnectionRequestContentGoogleOAuth2 other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -251,6 +256,13 @@ public Builder from(CreateConnectionRequestContentGoogleOAuth2 other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentGoogleOAuth2Strategy strategy) { @@ -297,19 +309,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -323,16 +322,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -368,8 +374,8 @@ public CreateConnectionRequestContentGoogleOAuth2 build() { authentication, connectedAccounts, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 6295dab08..009d19bc4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentInstagram.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentInstagram.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentInstagram.Builder.class) -public final class CreateConnectionRequestContentInstagram implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentInstagram implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentInstagram implements ICreateCon private final Map additionalProperties; private CreateConnectionRequestContentInstagram( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentInstagramStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentInstagram( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentInstagram other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentInstagram other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentInstagramStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentInstagram other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentInstagramStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentInstagram build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentInstagramStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentInstagram other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentInstagram other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentInstagramStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentInstagram build() { return new CreateConnectionRequestContentInstagram( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 d841ade3e..3004cb30d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentIp.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentIp.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentIp.Builder.class) -public final class CreateConnectionRequestContentIp implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentIp implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -42,9 +42,9 @@ public final class CreateConnectionRequestContentIp implements ICreateConnection private final Map additionalProperties; private CreateConnectionRequestContentIp( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentIpStrategy strategy, @@ -52,8 +52,8 @@ private CreateConnectionRequestContentIp( Optional showAsButton, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -64,22 +64,25 @@ private CreateConnectionRequestContentIp( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -120,8 +123,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentIp other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -133,8 +136,8 @@ private boolean equalTo(CreateConnectionRequestContentIp other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -147,16 +150,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentIpStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentIp other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentIpStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentIp build(); @@ -164,18 +171,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -194,7 +200,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentIpStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -205,11 +213,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -219,8 +225,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentIp other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -229,6 +235,13 @@ public Builder from(CreateConnectionRequestContentIp other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentIpStrategy strategy) { @@ -288,19 +301,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -314,16 +314,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -331,8 +338,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentIp build() { return new CreateConnectionRequestContentIp( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 30ae3f58b..1ecac5ca0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLine.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLine.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentLine.Builder.class) -public final class CreateConnectionRequestContentLine implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentLine implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentLine implements ICreateConnecti private final Map additionalProperties; private CreateConnectionRequestContentLine( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentLineStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentLine( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentLine other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentLine other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentLineStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentLine other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentLineStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentLine build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentLineStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentLine other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentLine other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentLineStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentLine build() { return new CreateConnectionRequestContentLine( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 58a0f6708..1ea5869a2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLinkedin.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLinkedin.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentLinkedin.Builder.class) -public final class CreateConnectionRequestContentLinkedin implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentLinkedin implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentLinkedin implements ICreateConn private final Map additionalProperties; private CreateConnectionRequestContentLinkedin( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentLinkedinStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentLinkedin( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentLinkedin other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentLinkedin other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentLinkedinStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentLinkedin other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentLinkedinStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentLinkedin build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentLinkedinStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentLinkedin other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentLinkedin other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentLinkedinStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentLinkedin build() { return new CreateConnectionRequestContentLinkedin( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicard.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicard.java deleted file mode 100644 index 8c10cc007..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicard.java +++ /dev/null @@ -1,325 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.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; - -@JsonInclude(JsonInclude.Include.NON_ABSENT) -@JsonDeserialize(builder = CreateConnectionRequestContentMiicard.Builder.class) -public final class CreateConnectionRequestContentMiicard implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; - - private final Optional> enabledClients; - - private final Optional isDomainConnection; - - private final Optional>> metadata; - - private final CreateConnectionRequestContentMiicardStrategy strategy; - - private final Optional options; - - private final Map additionalProperties; - - private CreateConnectionRequestContentMiicard( - Optional name, - Optional displayName, - Optional> enabledClients, - Optional isDomainConnection, - Optional>> metadata, - CreateConnectionRequestContentMiicardStrategy strategy, - Optional options, - Map additionalProperties) { - this.name = name; - this.displayName = displayName; - this.enabledClients = enabledClients; - this.isDomainConnection = isDomainConnection; - this.metadata = metadata; - this.strategy = strategy; - this.options = options; - this.additionalProperties = additionalProperties; - } - - @JsonProperty("name") - @java.lang.Override - public Optional getName() { - return name; - } - - @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("strategy") - public CreateConnectionRequestContentMiicardStrategy getStrategy() { - return strategy; - } - - @JsonProperty("options") - public Optional getOptions() { - return options; - } - - @java.lang.Override - public boolean equals(Object other) { - if (this == other) return true; - return other instanceof CreateConnectionRequestContentMiicard - && equalTo((CreateConnectionRequestContentMiicard) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(CreateConnectionRequestContentMiicard other) { - return name.equals(other.name) - && displayName.equals(other.displayName) - && enabledClients.equals(other.enabledClients) - && isDomainConnection.equals(other.isDomainConnection) - && metadata.equals(other.metadata) - && strategy.equals(other.strategy) - && options.equals(other.options); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash( - this.name, - this.displayName, - this.enabledClients, - this.isDomainConnection, - this.metadata, - this.strategy, - this.options); - } - - @java.lang.Override - public String toString() { - return ObjectMappers.stringify(this); - } - - public static StrategyStage builder() { - return new Builder(); - } - - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentMiicardStrategy strategy); - - Builder from(CreateConnectionRequestContentMiicard other); - } - - public interface _FinalStage { - CreateConnectionRequestContentMiicard build(); - - _FinalStage additionalProperty(String key, Object value); - - _FinalStage additionalProperties(Map additionalProperties); - - _FinalStage name(Optional name); - - _FinalStage name(String name); - - _FinalStage displayName(Optional displayName); - - _FinalStage displayName(String displayName); - - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - - _FinalStage isDomainConnection(Optional isDomainConnection); - - _FinalStage isDomainConnection(Boolean isDomainConnection); - - _FinalStage metadata(Optional>> metadata); - - _FinalStage metadata(Map> metadata); - - _FinalStage options(Optional options); - - _FinalStage options(ConnectionOptionsMiicard options); - } - - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { - private CreateConnectionRequestContentMiicardStrategy strategy; - - private Optional options = Optional.empty(); - - private Optional>> metadata = Optional.empty(); - - private Optional isDomainConnection = Optional.empty(); - - private Optional> enabledClients = Optional.empty(); - - private Optional displayName = Optional.empty(); - - private Optional name = Optional.empty(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - @java.lang.Override - public Builder from(CreateConnectionRequestContentMiicard other) { - name(other.getName()); - displayName(other.getDisplayName()); - enabledClients(other.getEnabledClients()); - isDomainConnection(other.getIsDomainConnection()); - metadata(other.getMetadata()); - strategy(other.getStrategy()); - options(other.getOptions()); - return this; - } - - @java.lang.Override - @JsonSetter("strategy") - public _FinalStage strategy(@NotNull CreateConnectionRequestContentMiicardStrategy strategy) { - this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); - return this; - } - - @java.lang.Override - public _FinalStage options(ConnectionOptionsMiicard options) { - this.options = Optional.ofNullable(options); - return this; - } - - @java.lang.Override - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public _FinalStage options(Optional options) { - this.options = options; - return this; - } - - @java.lang.Override - public _FinalStage metadata(Map> metadata) { - this.metadata = Optional.ofNullable(metadata); - return this; - } - - @java.lang.Override - @JsonSetter(value = "metadata", nulls = Nulls.SKIP) - public _FinalStage metadata(Optional>> metadata) { - this.metadata = metadata; - return this; - } - - @java.lang.Override - public _FinalStage isDomainConnection(Boolean isDomainConnection) { - this.isDomainConnection = Optional.ofNullable(isDomainConnection); - return this; - } - - @java.lang.Override - @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) - public _FinalStage isDomainConnection(Optional isDomainConnection) { - this.isDomainConnection = isDomainConnection; - return this; - } - - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - - @java.lang.Override - public _FinalStage displayName(String displayName) { - this.displayName = Optional.ofNullable(displayName); - return this; - } - - @java.lang.Override - @JsonSetter(value = "display_name", nulls = Nulls.SKIP) - public _FinalStage displayName(Optional displayName) { - this.displayName = displayName; - return this; - } - - @java.lang.Override - public _FinalStage name(String name) { - this.name = Optional.ofNullable(name); - return this; - } - - @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; - return this; - } - - @java.lang.Override - public CreateConnectionRequestContentMiicard build() { - return new CreateConnectionRequestContentMiicard( - name, - displayName, - enabledClients, - isDomainConnection, - metadata, - strategy, - options, - additionalProperties); - } - - @java.lang.Override - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - @java.lang.Override - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicardStrategy.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicardStrategy.java deleted file mode 100644 index 606bb060c..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicardStrategy.java +++ /dev/null @@ -1,75 +0,0 @@ -/** - * 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 CreateConnectionRequestContentMiicardStrategy { - public static final CreateConnectionRequestContentMiicardStrategy MIICARD = - new CreateConnectionRequestContentMiicardStrategy(Value.MIICARD, "miicard"); - - private final Value value; - - private final String string; - - CreateConnectionRequestContentMiicardStrategy(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 CreateConnectionRequestContentMiicardStrategy - && this.string.equals(((CreateConnectionRequestContentMiicardStrategy) other).string)); - } - - @java.lang.Override - public int hashCode() { - return this.string.hashCode(); - } - - public T visit(Visitor visitor) { - switch (value) { - case MIICARD: - return visitor.visitMiicard(); - case UNKNOWN: - default: - return visitor.visitUnknown(string); - } - } - - @JsonCreator(mode = JsonCreator.Mode.DELEGATING) - public static CreateConnectionRequestContentMiicardStrategy valueOf(String value) { - switch (value) { - case "miicard": - return MIICARD; - default: - return new CreateConnectionRequestContentMiicardStrategy(Value.UNKNOWN, value); - } - } - - public enum Value { - MIICARD, - - UNKNOWN - } - - public interface Visitor { - T visitMiicard(); - - T visitUnknown(String unknownType); - } -} 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 14c1670ad..92adfdab4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth1.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth1.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentOAuth1.Builder.class) -public final class CreateConnectionRequestContentOAuth1 implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentOAuth1 implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentOAuth1 implements ICreateConnec private final Map additionalProperties; private CreateConnectionRequestContentOAuth1( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentOAuth1Strategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentOAuth1( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentOAuth1 other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentOAuth1 other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentOAuth1Strategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentOAuth1 other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentOAuth1Strategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentOAuth1 build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentOAuth1Strategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentOAuth1 other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentOAuth1 other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentOAuth1Strategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentOAuth1 build() { return new CreateConnectionRequestContentOAuth1( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 41ae2365e..966a80314 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth2.java @@ -22,18 +22,17 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentOAuth2.Builder.class) -public final class CreateConnectionRequestContentOAuth2 - implements IConnectionPurposes, ICreateConnectionCommon, IConnectionCommon { +public final class CreateConnectionRequestContentOAuth2 implements IConnectionPurposes, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -47,9 +46,9 @@ public final class CreateConnectionRequestContentOAuth2 private CreateConnectionRequestContentOAuth2( Optional authentication, Optional connectedAccounts, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentOAuth2Strategy strategy, @@ -58,8 +57,8 @@ private CreateConnectionRequestContentOAuth2( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -81,22 +80,25 @@ public Optional getConnectedAccounts() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -135,8 +137,8 @@ private boolean equalTo(CreateConnectionRequestContentOAuth2 other) { return authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -149,8 +151,8 @@ public int hashCode() { this.authentication, this.connectedAccounts, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -162,16 +164,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentOAuth2Strategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentOAuth2 other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentOAuth2Strategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentOAuth2 build(); @@ -187,18 +193,17 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -213,7 +218,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentOAuth2Strategy strategy; private Optional options = Optional.empty(); @@ -222,11 +229,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional connectedAccounts = Optional.empty(); @@ -242,8 +247,8 @@ public Builder from(CreateConnectionRequestContentOAuth2 other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -251,6 +256,13 @@ public Builder from(CreateConnectionRequestContentOAuth2 other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentOAuth2Strategy strategy) { @@ -297,19 +309,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -323,16 +322,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -368,8 +374,8 @@ public CreateConnectionRequestContentOAuth2 build() { authentication, connectedAccounts, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 a8687b6ea..d4a70a02c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOffice365.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOffice365.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentOffice365.Builder.class) -public final class CreateConnectionRequestContentOffice365 implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentOffice365 implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -42,9 +42,9 @@ public final class CreateConnectionRequestContentOffice365 implements ICreateCon private final Map additionalProperties; private CreateConnectionRequestContentOffice365( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentOffice365Strategy strategy, @@ -52,8 +52,8 @@ private CreateConnectionRequestContentOffice365( Optional showAsButton, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -64,22 +64,25 @@ private CreateConnectionRequestContentOffice365( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -121,8 +124,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentOffice365 other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -134,8 +137,8 @@ private boolean equalTo(CreateConnectionRequestContentOffice365 other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -148,16 +151,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentOffice365Strategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentOffice365 other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentOffice365Strategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentOffice365 build(); @@ -165,18 +172,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -195,7 +201,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentOffice365Strategy strategy; private Optional showAsButton = Optional.empty(); @@ -206,11 +214,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -220,8 +226,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentOffice365 other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -230,6 +236,13 @@ public Builder from(CreateConnectionRequestContentOffice365 other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentOffice365Strategy strategy) { @@ -289,19 +302,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -315,16 +315,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -332,8 +339,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentOffice365 build() { return new CreateConnectionRequestContentOffice365( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 2c700ac57..dab2f821a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentOidc.Builder.class) -public final class CreateConnectionRequestContentOidc implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentOidc implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -46,9 +46,9 @@ public final class CreateConnectionRequestContentOidc implements ICreateConnecti private final Map additionalProperties; private CreateConnectionRequestContentOidc( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentOidcStrategy strategy, @@ -58,8 +58,8 @@ private CreateConnectionRequestContentOidc( Optional showAsButton, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -72,22 +72,25 @@ private CreateConnectionRequestContentOidc( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -139,8 +142,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentOidc other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -154,8 +157,8 @@ private boolean equalTo(CreateConnectionRequestContentOidc other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -170,16 +173,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentOidcStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentOidc other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentOidcStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentOidc build(); @@ -187,18 +194,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -225,7 +231,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentOidcStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -240,11 +248,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -254,8 +260,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentOidc other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -266,6 +272,13 @@ public Builder from(CreateConnectionRequestContentOidc other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentOidcStrategy strategy) { @@ -351,19 +364,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -377,16 +377,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -394,8 +401,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentOidc build() { return new CreateConnectionRequestContentOidc( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 5f323849c..0a9724fe8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOkta.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentOkta.Builder.class) -public final class CreateConnectionRequestContentOkta implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentOkta implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -42,9 +42,9 @@ public final class CreateConnectionRequestContentOkta implements ICreateConnecti private final Map additionalProperties; private CreateConnectionRequestContentOkta( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentOktaStrategy strategy, @@ -52,8 +52,8 @@ private CreateConnectionRequestContentOkta( Optional showAsButton, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -64,22 +64,25 @@ private CreateConnectionRequestContentOkta( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -121,8 +124,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentOkta other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -134,8 +137,8 @@ private boolean equalTo(CreateConnectionRequestContentOkta other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -148,16 +151,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentOktaStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentOkta other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentOktaStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentOkta build(); @@ -165,18 +172,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -195,7 +201,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentOktaStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -206,11 +214,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -220,8 +226,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentOkta other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -230,6 +236,13 @@ public Builder from(CreateConnectionRequestContentOkta other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentOktaStrategy strategy) { @@ -289,19 +302,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -315,16 +315,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -332,8 +339,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentOkta build() { return new CreateConnectionRequestContentOkta( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 425f2e99a..4b96f8c3a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypal.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypal.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentPaypal.Builder.class) -public final class CreateConnectionRequestContentPaypal implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentPaypal implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentPaypal implements ICreateConnec private final Map additionalProperties; private CreateConnectionRequestContentPaypal( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentPaypalStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentPaypal( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentPaypal other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentPaypal other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentPaypalStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentPaypal other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentPaypalStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentPaypal build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentPaypalStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentPaypal other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentPaypal other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentPaypalStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentPaypal build() { return new CreateConnectionRequestContentPaypal( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 b3afa8fde..edc453f2c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypalSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypalSandbox.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentPaypalSandbox.Builder.class) -public final class CreateConnectionRequestContentPaypalSandbox implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentPaypalSandbox implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentPaypalSandbox implements ICreat private final Map additionalProperties; private CreateConnectionRequestContentPaypalSandbox( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentPaypalSandboxStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentPaypalSandbox( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentPaypalSandbox other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentPaypalSandbox other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentPaypalSandboxStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentPaypalSandbox other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentPaypalSandboxStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentPaypalSandbox build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentPaypalSandboxStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentPaypalSandbox other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentPaypalSandbox other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentPaypalSandboxStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentPaypalSandbox build() { return new CreateConnectionRequestContentPaypalSandbox( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 b08d35c8f..b0b92814c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPingFederate.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPingFederate.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentPingFederate.Builder.class) -public final class CreateConnectionRequestContentPingFederate implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentPingFederate implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -42,9 +42,9 @@ public final class CreateConnectionRequestContentPingFederate implements ICreate private final Map additionalProperties; private CreateConnectionRequestContentPingFederate( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentPingFederateStrategy strategy, @@ -52,8 +52,8 @@ private CreateConnectionRequestContentPingFederate( Optional showAsButton, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -64,22 +64,25 @@ private CreateConnectionRequestContentPingFederate( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -121,8 +124,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentPingFederate other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -134,8 +137,8 @@ private boolean equalTo(CreateConnectionRequestContentPingFederate other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -148,16 +151,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentPingFederateStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentPingFederate other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentPingFederateStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentPingFederate build(); @@ -165,18 +172,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -195,7 +201,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentPingFederateStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -206,11 +214,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -220,8 +226,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentPingFederate other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -230,6 +236,13 @@ public Builder from(CreateConnectionRequestContentPingFederate other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentPingFederateStrategy strategy) { @@ -289,19 +302,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -315,16 +315,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -332,8 +339,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentPingFederate build() { return new CreateConnectionRequestContentPingFederate( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 053bd3ef1..d25f7e56d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPlanningCenter.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPlanningCenter.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentPlanningCenter.Builder.class) -public final class CreateConnectionRequestContentPlanningCenter implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentPlanningCenter implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentPlanningCenter implements ICrea private final Map additionalProperties; private CreateConnectionRequestContentPlanningCenter( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentPlanningCenterStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentPlanningCenter( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentPlanningCenter other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentPlanningCenter other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentPlanningCenterStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentPlanningCenter other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentPlanningCenterStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentPlanningCenter build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentPlanningCenterStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentPlanningCenter other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentPlanningCenter other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentPlanningCenterStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentPlanningCenter build() { return new CreateConnectionRequestContentPlanningCenter( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenren.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenren.java deleted file mode 100644 index a4a679457..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenren.java +++ /dev/null @@ -1,325 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.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; - -@JsonInclude(JsonInclude.Include.NON_ABSENT) -@JsonDeserialize(builder = CreateConnectionRequestContentRenren.Builder.class) -public final class CreateConnectionRequestContentRenren implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; - - private final Optional> enabledClients; - - private final Optional isDomainConnection; - - private final Optional>> metadata; - - private final CreateConnectionRequestContentRenrenStrategy strategy; - - private final Optional options; - - private final Map additionalProperties; - - private CreateConnectionRequestContentRenren( - Optional name, - Optional displayName, - Optional> enabledClients, - Optional isDomainConnection, - Optional>> metadata, - CreateConnectionRequestContentRenrenStrategy strategy, - Optional options, - Map additionalProperties) { - this.name = name; - this.displayName = displayName; - this.enabledClients = enabledClients; - this.isDomainConnection = isDomainConnection; - this.metadata = metadata; - this.strategy = strategy; - this.options = options; - this.additionalProperties = additionalProperties; - } - - @JsonProperty("name") - @java.lang.Override - public Optional getName() { - return name; - } - - @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("strategy") - public CreateConnectionRequestContentRenrenStrategy getStrategy() { - return strategy; - } - - @JsonProperty("options") - public Optional getOptions() { - return options; - } - - @java.lang.Override - public boolean equals(Object other) { - if (this == other) return true; - return other instanceof CreateConnectionRequestContentRenren - && equalTo((CreateConnectionRequestContentRenren) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(CreateConnectionRequestContentRenren other) { - return name.equals(other.name) - && displayName.equals(other.displayName) - && enabledClients.equals(other.enabledClients) - && isDomainConnection.equals(other.isDomainConnection) - && metadata.equals(other.metadata) - && strategy.equals(other.strategy) - && options.equals(other.options); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash( - this.name, - this.displayName, - this.enabledClients, - this.isDomainConnection, - this.metadata, - this.strategy, - this.options); - } - - @java.lang.Override - public String toString() { - return ObjectMappers.stringify(this); - } - - public static StrategyStage builder() { - return new Builder(); - } - - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentRenrenStrategy strategy); - - Builder from(CreateConnectionRequestContentRenren other); - } - - public interface _FinalStage { - CreateConnectionRequestContentRenren build(); - - _FinalStage additionalProperty(String key, Object value); - - _FinalStage additionalProperties(Map additionalProperties); - - _FinalStage name(Optional name); - - _FinalStage name(String name); - - _FinalStage displayName(Optional displayName); - - _FinalStage displayName(String displayName); - - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - - _FinalStage isDomainConnection(Optional isDomainConnection); - - _FinalStage isDomainConnection(Boolean isDomainConnection); - - _FinalStage metadata(Optional>> metadata); - - _FinalStage metadata(Map> metadata); - - _FinalStage options(Optional options); - - _FinalStage options(ConnectionOptionsRenren options); - } - - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { - private CreateConnectionRequestContentRenrenStrategy strategy; - - private Optional options = Optional.empty(); - - private Optional>> metadata = Optional.empty(); - - private Optional isDomainConnection = Optional.empty(); - - private Optional> enabledClients = Optional.empty(); - - private Optional displayName = Optional.empty(); - - private Optional name = Optional.empty(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - @java.lang.Override - public Builder from(CreateConnectionRequestContentRenren other) { - name(other.getName()); - displayName(other.getDisplayName()); - enabledClients(other.getEnabledClients()); - isDomainConnection(other.getIsDomainConnection()); - metadata(other.getMetadata()); - strategy(other.getStrategy()); - options(other.getOptions()); - return this; - } - - @java.lang.Override - @JsonSetter("strategy") - public _FinalStage strategy(@NotNull CreateConnectionRequestContentRenrenStrategy strategy) { - this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); - return this; - } - - @java.lang.Override - public _FinalStage options(ConnectionOptionsRenren options) { - this.options = Optional.ofNullable(options); - return this; - } - - @java.lang.Override - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public _FinalStage options(Optional options) { - this.options = options; - return this; - } - - @java.lang.Override - public _FinalStage metadata(Map> metadata) { - this.metadata = Optional.ofNullable(metadata); - return this; - } - - @java.lang.Override - @JsonSetter(value = "metadata", nulls = Nulls.SKIP) - public _FinalStage metadata(Optional>> metadata) { - this.metadata = metadata; - return this; - } - - @java.lang.Override - public _FinalStage isDomainConnection(Boolean isDomainConnection) { - this.isDomainConnection = Optional.ofNullable(isDomainConnection); - return this; - } - - @java.lang.Override - @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) - public _FinalStage isDomainConnection(Optional isDomainConnection) { - this.isDomainConnection = isDomainConnection; - return this; - } - - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - - @java.lang.Override - public _FinalStage displayName(String displayName) { - this.displayName = Optional.ofNullable(displayName); - return this; - } - - @java.lang.Override - @JsonSetter(value = "display_name", nulls = Nulls.SKIP) - public _FinalStage displayName(Optional displayName) { - this.displayName = displayName; - return this; - } - - @java.lang.Override - public _FinalStage name(String name) { - this.name = Optional.ofNullable(name); - return this; - } - - @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; - return this; - } - - @java.lang.Override - public CreateConnectionRequestContentRenren build() { - return new CreateConnectionRequestContentRenren( - name, - displayName, - enabledClients, - isDomainConnection, - metadata, - strategy, - options, - additionalProperties); - } - - @java.lang.Override - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - @java.lang.Override - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforce.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforce.java index 30d404aba..39fa56d00 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforce.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforce.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentSalesforce.Builder.class) -public final class CreateConnectionRequestContentSalesforce implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentSalesforce implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentSalesforce implements ICreateCo private final Map additionalProperties; private CreateConnectionRequestContentSalesforce( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentSalesforceStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentSalesforce( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentSalesforce other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentSalesforce other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentSalesforceStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentSalesforce other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentSalesforceStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentSalesforce build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentSalesforceStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentSalesforce other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentSalesforce other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentSalesforceStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentSalesforce build() { return new CreateConnectionRequestContentSalesforce( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 d93926d10..8e721e5db 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceCommunity.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceCommunity.java @@ -22,14 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentSalesforceCommunity.Builder.class) -public final class CreateConnectionRequestContentSalesforceCommunity - implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentSalesforceCommunity implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -41,17 +40,17 @@ public final class CreateConnectionRequestContentSalesforceCommunity private final Map additionalProperties; private CreateConnectionRequestContentSalesforceCommunity( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentSalesforceCommunityStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -61,22 +60,25 @@ private CreateConnectionRequestContentSalesforceCommunity( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -113,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentSalesforceCommunity other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -125,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentSalesforceCommunity other) public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -138,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentSalesforceCommunityStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentSalesforceCommunity other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentSalesforceCommunityStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentSalesforceCommunity build(); @@ -155,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -181,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentSalesforceCommunityStrategy strategy; private Optional options = Optional.empty(); @@ -190,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -204,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentSalesforceCommunity other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -213,6 +218,13 @@ public Builder from(CreateConnectionRequestContentSalesforceCommunity other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentSalesforceCommunityStrategy strategy) { @@ -259,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -285,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -302,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentSalesforceCommunity build() { return new CreateConnectionRequestContentSalesforceCommunity( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 a0020e7f6..7b6bf4b16 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceSandbox.java @@ -22,14 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentSalesforceSandbox.Builder.class) -public final class CreateConnectionRequestContentSalesforceSandbox - implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentSalesforceSandbox implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -41,17 +40,17 @@ public final class CreateConnectionRequestContentSalesforceSandbox private final Map additionalProperties; private CreateConnectionRequestContentSalesforceSandbox( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentSalesforceSandboxStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -61,22 +60,25 @@ private CreateConnectionRequestContentSalesforceSandbox( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -113,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentSalesforceSandbox other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -125,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentSalesforceSandbox other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -138,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentSalesforceSandboxStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentSalesforceSandbox other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentSalesforceSandboxStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentSalesforceSandbox build(); @@ -155,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -181,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentSalesforceSandboxStrategy strategy; private Optional options = Optional.empty(); @@ -190,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -204,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentSalesforceSandbox other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -213,6 +218,13 @@ public Builder from(CreateConnectionRequestContentSalesforceSandbox other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentSalesforceSandboxStrategy strategy) { @@ -259,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -285,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -302,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentSalesforceSandbox build() { return new CreateConnectionRequestContentSalesforceSandbox( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 46e6431d8..f0790ca25 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSaml.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentSaml.Builder.class) -public final class CreateConnectionRequestContentSaml implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentSaml implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -42,9 +42,9 @@ public final class CreateConnectionRequestContentSaml implements ICreateConnecti private final Map additionalProperties; private CreateConnectionRequestContentSaml( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentSamlStrategy strategy, @@ -52,8 +52,8 @@ private CreateConnectionRequestContentSaml( Optional showAsButton, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -64,22 +64,25 @@ private CreateConnectionRequestContentSaml( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -121,8 +124,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentSaml other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -134,8 +137,8 @@ private boolean equalTo(CreateConnectionRequestContentSaml other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -148,16 +151,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentSamlStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentSaml other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentSamlStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentSaml build(); @@ -165,18 +172,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -195,7 +201,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentSamlStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -206,11 +214,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -220,8 +226,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentSaml other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -230,6 +236,13 @@ public Builder from(CreateConnectionRequestContentSaml other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentSamlStrategy strategy) { @@ -289,19 +302,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -315,16 +315,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -332,8 +339,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentSaml build() { return new CreateConnectionRequestContentSaml( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 236a816a4..4fb2214a0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSharepoint.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSharepoint.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentSharepoint.Builder.class) -public final class CreateConnectionRequestContentSharepoint implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentSharepoint implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -42,9 +42,9 @@ public final class CreateConnectionRequestContentSharepoint implements ICreateCo private final Map additionalProperties; private CreateConnectionRequestContentSharepoint( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentSharepointStrategy strategy, @@ -52,8 +52,8 @@ private CreateConnectionRequestContentSharepoint( Optional showAsButton, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -64,22 +64,25 @@ private CreateConnectionRequestContentSharepoint( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -121,8 +124,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentSharepoint other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -134,8 +137,8 @@ private boolean equalTo(CreateConnectionRequestContentSharepoint other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -148,16 +151,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentSharepointStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentSharepoint other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentSharepointStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentSharepoint build(); @@ -165,18 +172,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -195,7 +201,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentSharepointStrategy strategy; private Optional showAsButton = Optional.empty(); @@ -206,11 +214,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -220,8 +226,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentSharepoint other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -230,6 +236,13 @@ public Builder from(CreateConnectionRequestContentSharepoint other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentSharepointStrategy strategy) { @@ -289,19 +302,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -315,16 +315,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -332,8 +339,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentSharepoint build() { return new CreateConnectionRequestContentSharepoint( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 e590a9eff..da07b6865 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShop.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShop.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentShop.Builder.class) -public final class CreateConnectionRequestContentShop implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentShop implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentShop implements ICreateConnecti private final Map additionalProperties; private CreateConnectionRequestContentShop( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentShopStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentShop( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentShop other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentShop other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentShopStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentShop other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentShopStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentShop build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentShopStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentShop other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentShop other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentShopStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentShop build() { return new CreateConnectionRequestContentShop( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 414cf1762..92b0f60e3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShopify.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShopify.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentShopify.Builder.class) -public final class CreateConnectionRequestContentShopify implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentShopify implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentShopify implements ICreateConne private final Map additionalProperties; private CreateConnectionRequestContentShopify( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentShopifyStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentShopify( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentShopify other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentShopify other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentShopifyStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentShopify other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentShopifyStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentShopify build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentShopifyStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentShopify other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentShopify other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentShopifyStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentShopify build() { return new CreateConnectionRequestContentShopify( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 cd88021ee..40bd5e909 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSms.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentSms.Builder.class) -public final class CreateConnectionRequestContentSms implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentSms implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentSms implements ICreateConnectio private final Map additionalProperties; private CreateConnectionRequestContentSms( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentSmsStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentSms( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -111,8 +114,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentSms other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -123,8 +126,8 @@ private boolean equalTo(CreateConnectionRequestContentSms other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -136,16 +139,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentSmsStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentSms other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentSmsStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentSms build(); @@ -153,18 +160,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -179,7 +185,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentSmsStrategy strategy; private Optional options = Optional.empty(); @@ -188,11 +196,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -202,8 +208,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentSms other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -211,6 +217,13 @@ public Builder from(CreateConnectionRequestContentSms other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentSmsStrategy strategy) { @@ -257,19 +270,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -283,16 +283,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -300,8 +307,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentSms build() { return new CreateConnectionRequestContentSms( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 4479d7032..b673c6407 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSoundcloud.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSoundcloud.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentSoundcloud.Builder.class) -public final class CreateConnectionRequestContentSoundcloud implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentSoundcloud implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentSoundcloud implements ICreateCo private final Map additionalProperties; private CreateConnectionRequestContentSoundcloud( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentSoundcloudStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentSoundcloud( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentSoundcloud other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentSoundcloud other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentSoundcloudStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentSoundcloud other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentSoundcloudStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentSoundcloud build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentSoundcloudStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentSoundcloud other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentSoundcloud other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentSoundcloudStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentSoundcloud build() { return new CreateConnectionRequestContentSoundcloud( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 e53c1ccb7..7cb2d3194 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentThirtySevenSignals.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentThirtySevenSignals.java @@ -22,14 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentThirtySevenSignals.Builder.class) -public final class CreateConnectionRequestContentThirtySevenSignals - implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentThirtySevenSignals implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -41,17 +40,17 @@ public final class CreateConnectionRequestContentThirtySevenSignals private final Map additionalProperties; private CreateConnectionRequestContentThirtySevenSignals( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentThirtySevenSignalsStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -61,22 +60,25 @@ private CreateConnectionRequestContentThirtySevenSignals( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -113,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentThirtySevenSignals other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -125,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentThirtySevenSignals other) public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -138,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentThirtySevenSignalsStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentThirtySevenSignals other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentThirtySevenSignalsStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentThirtySevenSignals build(); @@ -155,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -181,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentThirtySevenSignalsStrategy strategy; private Optional options = Optional.empty(); @@ -190,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -204,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentThirtySevenSignals other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -213,6 +218,13 @@ public Builder from(CreateConnectionRequestContentThirtySevenSignals other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentThirtySevenSignalsStrategy strategy) { @@ -259,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -285,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -302,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentThirtySevenSignals build() { return new CreateConnectionRequestContentThirtySevenSignals( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 5e29efc20..498ce34dc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTwitter.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTwitter.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentTwitter.Builder.class) -public final class CreateConnectionRequestContentTwitter implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentTwitter implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentTwitter implements ICreateConne private final Map additionalProperties; private CreateConnectionRequestContentTwitter( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentTwitterStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentTwitter( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentTwitter other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentTwitter other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentTwitterStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentTwitter other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentTwitterStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentTwitter build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentTwitterStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentTwitter other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentTwitter other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentTwitterStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentTwitter build() { return new CreateConnectionRequestContentTwitter( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 3cf0342e5..ef2e9a3ce 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentUntappd.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentUntappd.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentUntappd.Builder.class) -public final class CreateConnectionRequestContentUntappd implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentUntappd implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentUntappd implements ICreateConne private final Map additionalProperties; private CreateConnectionRequestContentUntappd( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentUntappdStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentUntappd( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentUntappd other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentUntappd other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentUntappdStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentUntappd other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentUntappdStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentUntappd build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentUntappdStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentUntappd other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentUntappd other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentUntappdStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentUntappd build() { return new CreateConnectionRequestContentUntappd( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 5411a4f83..ea45dc8c3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentVkontakte.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentVkontakte.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentVkontakte.Builder.class) -public final class CreateConnectionRequestContentVkontakte implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentVkontakte implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentVkontakte implements ICreateCon private final Map additionalProperties; private CreateConnectionRequestContentVkontakte( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentVkontakteStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentVkontakte( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentVkontakte other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentVkontakte other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentVkontakteStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentVkontakte other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentVkontakteStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentVkontakte build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentVkontakteStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentVkontakte other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentVkontakte other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentVkontakteStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentVkontakte build() { return new CreateConnectionRequestContentVkontakte( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 7a945f802..99f8a3bec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWeibo.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWeibo.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentWeibo.Builder.class) -public final class CreateConnectionRequestContentWeibo implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentWeibo implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentWeibo implements ICreateConnect private final Map additionalProperties; private CreateConnectionRequestContentWeibo( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentWeiboStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentWeibo( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentWeibo other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentWeibo other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentWeiboStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentWeibo other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentWeiboStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentWeibo build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentWeiboStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentWeibo other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentWeibo other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentWeiboStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentWeibo build() { return new CreateConnectionRequestContentWeibo( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 d5061d852..4fb6518ed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWindowsLive.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWindowsLive.java @@ -22,18 +22,17 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentWindowsLive.Builder.class) -public final class CreateConnectionRequestContentWindowsLive - implements IConnectionPurposes, ICreateConnectionCommon, IConnectionCommon { +public final class CreateConnectionRequestContentWindowsLive implements IConnectionPurposes, ICreateConnectionCommon { private final Optional authentication; private final Optional connectedAccounts; - private final Optional name; - - private final Optional displayName; + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -47,9 +46,9 @@ public final class CreateConnectionRequestContentWindowsLive private CreateConnectionRequestContentWindowsLive( Optional authentication, Optional connectedAccounts, - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentWindowsLiveStrategy strategy, @@ -58,8 +57,8 @@ private CreateConnectionRequestContentWindowsLive( this.authentication = authentication; this.connectedAccounts = connectedAccounts; this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -81,22 +80,25 @@ public Optional getConnectedAccounts() { @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -135,8 +137,8 @@ private boolean equalTo(CreateConnectionRequestContentWindowsLive other) { return authentication.equals(other.authentication) && connectedAccounts.equals(other.connectedAccounts) && name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -149,8 +151,8 @@ public int hashCode() { this.authentication, this.connectedAccounts, this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -162,16 +164,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentWindowsLiveStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentWindowsLive other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentWindowsLiveStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentWindowsLive build(); @@ -187,18 +193,17 @@ public interface _FinalStage { _FinalStage connectedAccounts(ConnectionConnectedAccountsPurpose connectedAccounts); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -213,7 +218,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentWindowsLiveStrategy strategy; private Optional options = Optional.empty(); @@ -222,11 +229,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); private Optional connectedAccounts = Optional.empty(); @@ -242,8 +247,8 @@ public Builder from(CreateConnectionRequestContentWindowsLive other) { authentication(other.getAuthentication()); connectedAccounts(other.getConnectedAccounts()); name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -251,6 +256,13 @@ public Builder from(CreateConnectionRequestContentWindowsLive other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentWindowsLiveStrategy strategy) { @@ -297,19 +309,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -323,16 +322,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -368,8 +374,8 @@ public CreateConnectionRequestContentWindowsLive build() { authentication, connectedAccounts, name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 170bbeec4..2099ee797 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWordpress.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWordpress.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentWordpress.Builder.class) -public final class CreateConnectionRequestContentWordpress implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentWordpress implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentWordpress implements ICreateCon private final Map additionalProperties; private CreateConnectionRequestContentWordpress( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentWordpressStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentWordpress( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentWordpress other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentWordpress other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentWordpressStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentWordpress other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentWordpressStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentWordpress build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentWordpressStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentWordpress other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentWordpress other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentWordpressStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentWordpress build() { return new CreateConnectionRequestContentWordpress( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, 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 1cd054a56..97dbeb61b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYahoo.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYahoo.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentYahoo.Builder.class) -public final class CreateConnectionRequestContentYahoo implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentYahoo implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentYahoo implements ICreateConnect private final Map additionalProperties; private CreateConnectionRequestContentYahoo( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentYahooStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentYahoo( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentYahoo other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentYahoo other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentYahooStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentYahoo other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentYahooStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentYahoo build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentYahooStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentYahoo other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentYahoo other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentYahooStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentYahoo build() { return new CreateConnectionRequestContentYahoo( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYammer.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYammer.java deleted file mode 100644 index 777cd6b50..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYammer.java +++ /dev/null @@ -1,325 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.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; - -@JsonInclude(JsonInclude.Include.NON_ABSENT) -@JsonDeserialize(builder = CreateConnectionRequestContentYammer.Builder.class) -public final class CreateConnectionRequestContentYammer implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; - - private final Optional> enabledClients; - - private final Optional isDomainConnection; - - private final Optional>> metadata; - - private final CreateConnectionRequestContentYammerStrategy strategy; - - private final Optional options; - - private final Map additionalProperties; - - private CreateConnectionRequestContentYammer( - Optional name, - Optional displayName, - Optional> enabledClients, - Optional isDomainConnection, - Optional>> metadata, - CreateConnectionRequestContentYammerStrategy strategy, - Optional options, - Map additionalProperties) { - this.name = name; - this.displayName = displayName; - this.enabledClients = enabledClients; - this.isDomainConnection = isDomainConnection; - this.metadata = metadata; - this.strategy = strategy; - this.options = options; - this.additionalProperties = additionalProperties; - } - - @JsonProperty("name") - @java.lang.Override - public Optional getName() { - return name; - } - - @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("strategy") - public CreateConnectionRequestContentYammerStrategy getStrategy() { - return strategy; - } - - @JsonProperty("options") - public Optional getOptions() { - return options; - } - - @java.lang.Override - public boolean equals(Object other) { - if (this == other) return true; - return other instanceof CreateConnectionRequestContentYammer - && equalTo((CreateConnectionRequestContentYammer) other); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - private boolean equalTo(CreateConnectionRequestContentYammer other) { - return name.equals(other.name) - && displayName.equals(other.displayName) - && enabledClients.equals(other.enabledClients) - && isDomainConnection.equals(other.isDomainConnection) - && metadata.equals(other.metadata) - && strategy.equals(other.strategy) - && options.equals(other.options); - } - - @java.lang.Override - public int hashCode() { - return Objects.hash( - this.name, - this.displayName, - this.enabledClients, - this.isDomainConnection, - this.metadata, - this.strategy, - this.options); - } - - @java.lang.Override - public String toString() { - return ObjectMappers.stringify(this); - } - - public static StrategyStage builder() { - return new Builder(); - } - - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentYammerStrategy strategy); - - Builder from(CreateConnectionRequestContentYammer other); - } - - public interface _FinalStage { - CreateConnectionRequestContentYammer build(); - - _FinalStage additionalProperty(String key, Object value); - - _FinalStage additionalProperties(Map additionalProperties); - - _FinalStage name(Optional name); - - _FinalStage name(String name); - - _FinalStage displayName(Optional displayName); - - _FinalStage displayName(String displayName); - - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - - _FinalStage isDomainConnection(Optional isDomainConnection); - - _FinalStage isDomainConnection(Boolean isDomainConnection); - - _FinalStage metadata(Optional>> metadata); - - _FinalStage metadata(Map> metadata); - - _FinalStage options(Optional options); - - _FinalStage options(ConnectionOptionsYammer options); - } - - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { - private CreateConnectionRequestContentYammerStrategy strategy; - - private Optional options = Optional.empty(); - - private Optional>> metadata = Optional.empty(); - - private Optional isDomainConnection = Optional.empty(); - - private Optional> enabledClients = Optional.empty(); - - private Optional displayName = Optional.empty(); - - private Optional name = Optional.empty(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - @java.lang.Override - public Builder from(CreateConnectionRequestContentYammer other) { - name(other.getName()); - displayName(other.getDisplayName()); - enabledClients(other.getEnabledClients()); - isDomainConnection(other.getIsDomainConnection()); - metadata(other.getMetadata()); - strategy(other.getStrategy()); - options(other.getOptions()); - return this; - } - - @java.lang.Override - @JsonSetter("strategy") - public _FinalStage strategy(@NotNull CreateConnectionRequestContentYammerStrategy strategy) { - this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); - return this; - } - - @java.lang.Override - public _FinalStage options(ConnectionOptionsYammer options) { - this.options = Optional.ofNullable(options); - return this; - } - - @java.lang.Override - @JsonSetter(value = "options", nulls = Nulls.SKIP) - public _FinalStage options(Optional options) { - this.options = options; - return this; - } - - @java.lang.Override - public _FinalStage metadata(Map> metadata) { - this.metadata = Optional.ofNullable(metadata); - return this; - } - - @java.lang.Override - @JsonSetter(value = "metadata", nulls = Nulls.SKIP) - public _FinalStage metadata(Optional>> metadata) { - this.metadata = metadata; - return this; - } - - @java.lang.Override - public _FinalStage isDomainConnection(Boolean isDomainConnection) { - this.isDomainConnection = Optional.ofNullable(isDomainConnection); - return this; - } - - @java.lang.Override - @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) - public _FinalStage isDomainConnection(Optional isDomainConnection) { - this.isDomainConnection = isDomainConnection; - return this; - } - - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - - @java.lang.Override - public _FinalStage displayName(String displayName) { - this.displayName = Optional.ofNullable(displayName); - return this; - } - - @java.lang.Override - @JsonSetter(value = "display_name", nulls = Nulls.SKIP) - public _FinalStage displayName(Optional displayName) { - this.displayName = displayName; - return this; - } - - @java.lang.Override - public _FinalStage name(String name) { - this.name = Optional.ofNullable(name); - return this; - } - - @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; - return this; - } - - @java.lang.Override - public CreateConnectionRequestContentYammer build() { - return new CreateConnectionRequestContentYammer( - name, - displayName, - enabledClients, - isDomainConnection, - metadata, - strategy, - options, - additionalProperties); - } - - @java.lang.Override - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - @java.lang.Override - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYandex.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYandex.java index e128624cb..092de700a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYandex.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYandex.java @@ -22,13 +22,13 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateConnectionRequestContentYandex.Builder.class) -public final class CreateConnectionRequestContentYandex implements ICreateConnectionCommon, IConnectionCommon { - private final Optional name; - - private final Optional displayName; +public final class CreateConnectionRequestContentYandex implements ICreateConnectionCommon { + private final String name; private final Optional> enabledClients; + private final Optional displayName; + private final Optional isDomainConnection; private final Optional>> metadata; @@ -40,17 +40,17 @@ public final class CreateConnectionRequestContentYandex implements ICreateConnec private final Map additionalProperties; private CreateConnectionRequestContentYandex( - Optional name, - Optional displayName, + String name, Optional> enabledClients, + Optional displayName, Optional isDomainConnection, Optional>> metadata, CreateConnectionRequestContentYandexStrategy strategy, Optional options, Map additionalProperties) { this.name = name; - this.displayName = displayName; this.enabledClients = enabledClients; + this.displayName = displayName; this.isDomainConnection = isDomainConnection; this.metadata = metadata; this.strategy = strategy; @@ -60,22 +60,25 @@ private CreateConnectionRequestContentYandex( @JsonProperty("name") @java.lang.Override - public Optional getName() { + public String getName() { return name; } - @JsonProperty("display_name") - @java.lang.Override - public Optional getDisplayName() { - return displayName; - } - + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ @JsonProperty("enabled_clients") @java.lang.Override public Optional> getEnabledClients() { return enabledClients; } + @JsonProperty("display_name") + @java.lang.Override + public Optional getDisplayName() { + return displayName; + } + @JsonProperty("is_domain_connection") @java.lang.Override public Optional getIsDomainConnection() { @@ -112,8 +115,8 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateConnectionRequestContentYandex other) { return name.equals(other.name) - && displayName.equals(other.displayName) && enabledClients.equals(other.enabledClients) + && displayName.equals(other.displayName) && isDomainConnection.equals(other.isDomainConnection) && metadata.equals(other.metadata) && strategy.equals(other.strategy) @@ -124,8 +127,8 @@ private boolean equalTo(CreateConnectionRequestContentYandex other) { public int hashCode() { return Objects.hash( this.name, - this.displayName, this.enabledClients, + this.displayName, this.isDomainConnection, this.metadata, this.strategy, @@ -137,16 +140,20 @@ public String toString() { return ObjectMappers.stringify(this); } - public static StrategyStage builder() { + public static NameStage builder() { return new Builder(); } - public interface StrategyStage { - _FinalStage strategy(@NotNull CreateConnectionRequestContentYandexStrategy strategy); + public interface NameStage { + StrategyStage name(@NotNull String name); Builder from(CreateConnectionRequestContentYandex other); } + public interface StrategyStage { + _FinalStage strategy(@NotNull CreateConnectionRequestContentYandexStrategy strategy); + } + public interface _FinalStage { CreateConnectionRequestContentYandex build(); @@ -154,18 +161,17 @@ public interface _FinalStage { _FinalStage additionalProperties(Map additionalProperties); - _FinalStage name(Optional name); + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); - _FinalStage name(String name); + _FinalStage enabledClients(List enabledClients); _FinalStage displayName(Optional displayName); _FinalStage displayName(String displayName); - _FinalStage enabledClients(Optional> enabledClients); - - _FinalStage enabledClients(List enabledClients); - _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); @@ -180,7 +186,9 @@ public interface _FinalStage { } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements StrategyStage, _FinalStage { + public static final class Builder implements NameStage, StrategyStage, _FinalStage { + private String name; + private CreateConnectionRequestContentYandexStrategy strategy; private Optional options = Optional.empty(); @@ -189,11 +197,9 @@ public static final class Builder implements StrategyStage, _FinalStage { private Optional isDomainConnection = Optional.empty(); - private Optional> enabledClients = Optional.empty(); - private Optional displayName = Optional.empty(); - private Optional name = Optional.empty(); + private Optional> enabledClients = Optional.empty(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -203,8 +209,8 @@ private Builder() {} @java.lang.Override public Builder from(CreateConnectionRequestContentYandex other) { name(other.getName()); - displayName(other.getDisplayName()); enabledClients(other.getEnabledClients()); + displayName(other.getDisplayName()); isDomainConnection(other.getIsDomainConnection()); metadata(other.getMetadata()); strategy(other.getStrategy()); @@ -212,6 +218,13 @@ public Builder from(CreateConnectionRequestContentYandex other) { return this; } + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + @java.lang.Override @JsonSetter("strategy") public _FinalStage strategy(@NotNull CreateConnectionRequestContentYandexStrategy strategy) { @@ -258,19 +271,6 @@ public _FinalStage isDomainConnection(Optional isDomainConnection) { return this; } - @java.lang.Override - public _FinalStage enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); - return this; - } - - @java.lang.Override - @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public _FinalStage enabledClients(Optional> enabledClients) { - this.enabledClients = enabledClients; - return this; - } - @java.lang.Override public _FinalStage displayName(String displayName) { this.displayName = Optional.ofNullable(displayName); @@ -284,16 +284,23 @@ public _FinalStage displayName(Optional displayName) { return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @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); + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); return this; } + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ @java.lang.Override - @JsonSetter(value = "name", nulls = Nulls.SKIP) - public _FinalStage name(Optional name) { - this.name = name; + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; return this; } @@ -301,8 +308,8 @@ public _FinalStage name(Optional name) { public CreateConnectionRequestContentYandex build() { return new CreateConnectionRequestContentYandex( name, - displayName, enabledClients, + displayName, isDomainConnection, metadata, strategy, diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningRequestContent.java index da8903a6b..3b9e88b66 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningRequestContent.java @@ -25,14 +25,18 @@ public final class CreateDirectoryProvisioningRequestContent { private final Optional synchronizeAutomatically; + private final Optional synchronizeGroups; + private final Map additionalProperties; private CreateDirectoryProvisioningRequestContent( Optional> mapping, Optional synchronizeAutomatically, + Optional synchronizeGroups, Map additionalProperties) { this.mapping = mapping; this.synchronizeAutomatically = synchronizeAutomatically; + this.synchronizeGroups = synchronizeGroups; this.additionalProperties = additionalProperties; } @@ -52,6 +56,11 @@ public Optional getSynchronizeAutomatically() { return synchronizeAutomatically; } + @JsonProperty("synchronize_groups") + public Optional getSynchronizeGroups() { + return synchronizeGroups; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -65,12 +74,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(CreateDirectoryProvisioningRequestContent other) { - return mapping.equals(other.mapping) && synchronizeAutomatically.equals(other.synchronizeAutomatically); + return mapping.equals(other.mapping) + && synchronizeAutomatically.equals(other.synchronizeAutomatically) + && synchronizeGroups.equals(other.synchronizeGroups); } @java.lang.Override public int hashCode() { - return Objects.hash(this.mapping, this.synchronizeAutomatically); + return Objects.hash(this.mapping, this.synchronizeAutomatically, this.synchronizeGroups); } @java.lang.Override @@ -88,6 +99,8 @@ public static final class Builder { private Optional synchronizeAutomatically = Optional.empty(); + private Optional synchronizeGroups = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -96,6 +109,7 @@ private Builder() {} public Builder from(CreateDirectoryProvisioningRequestContent other) { mapping(other.getMapping()); synchronizeAutomatically(other.getSynchronizeAutomatically()); + synchronizeGroups(other.getSynchronizeGroups()); return this; } @@ -127,9 +141,20 @@ public Builder synchronizeAutomatically(Boolean synchronizeAutomatically) { return this; } + @JsonSetter(value = "synchronize_groups", nulls = Nulls.SKIP) + public Builder synchronizeGroups(Optional synchronizeGroups) { + this.synchronizeGroups = synchronizeGroups; + return this; + } + + public Builder synchronizeGroups(String synchronizeGroups) { + this.synchronizeGroups = Optional.ofNullable(synchronizeGroups); + return this; + } + public CreateDirectoryProvisioningRequestContent build() { return new CreateDirectoryProvisioningRequestContent( - mapping, synchronizeAutomatically, additionalProperties); + mapping, synchronizeAutomatically, synchronizeGroups, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java index ab6b6b7a0..7a3abb5bb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java @@ -34,6 +34,8 @@ public final class CreateDirectoryProvisioningResponseContent { private final boolean synchronizeAutomatically; + private final Optional synchronizeGroups; + private final OffsetDateTime createdAt; private final OffsetDateTime updatedAt; @@ -52,6 +54,7 @@ private CreateDirectoryProvisioningResponseContent( String strategy, List mapping, boolean synchronizeAutomatically, + Optional synchronizeGroups, OffsetDateTime createdAt, OffsetDateTime updatedAt, Optional lastSynchronizationAt, @@ -63,6 +66,7 @@ private CreateDirectoryProvisioningResponseContent( this.strategy = strategy; this.mapping = mapping; this.synchronizeAutomatically = synchronizeAutomatically; + this.synchronizeGroups = synchronizeGroups; this.createdAt = createdAt; this.updatedAt = updatedAt; this.lastSynchronizationAt = lastSynchronizationAt; @@ -111,6 +115,11 @@ public boolean getSynchronizeAutomatically() { return synchronizeAutomatically; } + @JsonProperty("synchronize_groups") + public Optional getSynchronizeGroups() { + return synchronizeGroups; + } + /** * @return The timestamp at which the directory provisioning configuration was created */ @@ -169,6 +178,7 @@ private boolean equalTo(CreateDirectoryProvisioningResponseContent other) { && strategy.equals(other.strategy) && mapping.equals(other.mapping) && synchronizeAutomatically == other.synchronizeAutomatically + && synchronizeGroups.equals(other.synchronizeGroups) && createdAt.equals(other.createdAt) && updatedAt.equals(other.updatedAt) && lastSynchronizationAt.equals(other.lastSynchronizationAt) @@ -184,6 +194,7 @@ public int hashCode() { this.strategy, this.mapping, this.synchronizeAutomatically, + this.synchronizeGroups, this.createdAt, this.updatedAt, this.lastSynchronizationAt, @@ -260,6 +271,10 @@ public interface _FinalStage { _FinalStage addAllMapping(List mapping); + _FinalStage synchronizeGroups(Optional synchronizeGroups); + + _FinalStage synchronizeGroups(String synchronizeGroups); + /** *

The timestamp at which the connection was last synchronized

*/ @@ -309,6 +324,8 @@ public static final class Builder private Optional lastSynchronizationAt = Optional.empty(); + private Optional synchronizeGroups = Optional.empty(); + private List mapping = new ArrayList<>(); @JsonAnySetter @@ -323,6 +340,7 @@ public Builder from(CreateDirectoryProvisioningResponseContent other) { strategy(other.getStrategy()); mapping(other.getMapping()); synchronizeAutomatically(other.getSynchronizeAutomatically()); + synchronizeGroups(other.getSynchronizeGroups()); createdAt(other.getCreatedAt()); updatedAt(other.getUpdatedAt()); lastSynchronizationAt(other.getLastSynchronizationAt()); @@ -463,6 +481,19 @@ public _FinalStage lastSynchronizationAt(Optional lastSynchroniz return this; } + @java.lang.Override + public _FinalStage synchronizeGroups(String synchronizeGroups) { + this.synchronizeGroups = Optional.ofNullable(synchronizeGroups); + return this; + } + + @java.lang.Override + @JsonSetter(value = "synchronize_groups", nulls = Nulls.SKIP) + public _FinalStage synchronizeGroups(Optional synchronizeGroups) { + this.synchronizeGroups = synchronizeGroups; + return this; + } + /** *

The mapping between Auth0 and IDP user attributes

* @return Reference to {@code this} so that method calls can be chained together. @@ -506,6 +537,7 @@ public CreateDirectoryProvisioningResponseContent build() { strategy, mapping, synchronizeAutomatically, + synchronizeGroups, createdAt, updatedAt, lastSynchronizationAt, diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java index bbccab70c..9f4e9a902 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java @@ -10,10 +10,12 @@ 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) @@ -23,7 +25,7 @@ public final class CreateNetworkAclRequestContent { private final boolean active; - private final double priority; + private final Optional priority; private final NetworkAclRule rule; @@ -32,7 +34,7 @@ public final class CreateNetworkAclRequestContent { private CreateNetworkAclRequestContent( String description, boolean active, - double priority, + Optional priority, NetworkAclRule rule, Map additionalProperties) { this.description = description; @@ -59,7 +61,7 @@ public boolean getActive() { * @return Indicates the order in which the ACL will be evaluated relative to other ACL rules. */ @JsonProperty("priority") - public double getPriority() { + public Optional getPriority() { return priority; } @@ -82,7 +84,7 @@ public Map getAdditionalProperties() { private boolean equalTo(CreateNetworkAclRequestContent other) { return description.equals(other.description) && active == other.active - && priority == other.priority + && priority.equals(other.priority) && rule.equals(other.rule); } @@ -110,14 +112,7 @@ public interface ActiveStage { /** *

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

*/ - PriorityStage active(boolean active); - } - - public interface PriorityStage { - /** - *

Indicates the order in which the ACL will be evaluated relative to other ACL rules.

- */ - RuleStage priority(double priority); + RuleStage active(boolean active); } public interface RuleStage { @@ -130,18 +125,25 @@ public interface _FinalStage { _FinalStage additionalProperty(String key, Object value); _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Indicates the order in which the ACL will be evaluated relative to other ACL rules.

+ */ + _FinalStage priority(Optional priority); + + _FinalStage priority(Double priority); } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements DescriptionStage, ActiveStage, PriorityStage, RuleStage, _FinalStage { + public static final class Builder implements DescriptionStage, ActiveStage, RuleStage, _FinalStage { private String description; private boolean active; - private double priority; - private NetworkAclRule rule; + private Optional priority = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -170,27 +172,35 @@ public ActiveStage description(@NotNull String description) { */ @java.lang.Override @JsonSetter("active") - public PriorityStage active(boolean active) { + public RuleStage active(boolean active) { this.active = active; return this; } + @java.lang.Override + @JsonSetter("rule") + public _FinalStage rule(@NotNull NetworkAclRule rule) { + this.rule = Objects.requireNonNull(rule, "rule must not be null"); + return this; + } + /** - *

Indicates the order in which the ACL will be evaluated relative to other ACL rules.

*

Indicates the order in which the ACL will be evaluated relative to other ACL rules.

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override - @JsonSetter("priority") - public RuleStage priority(double priority) { - this.priority = priority; + public _FinalStage priority(Double priority) { + this.priority = Optional.ofNullable(priority); return this; } + /** + *

Indicates the order in which the ACL will be evaluated relative to other ACL rules.

+ */ @java.lang.Override - @JsonSetter("rule") - public _FinalStage rule(@NotNull NetworkAclRule rule) { - this.rule = Objects.requireNonNull(rule, "rule must not be null"); + @JsonSetter(value = "priority", nulls = Nulls.SKIP) + public _FinalStage priority(Optional priority) { + this.priority = priority; return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java index 7d7b51dd9..9094ba60a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java @@ -37,6 +37,8 @@ public final class CreateResourceServerRequestContent { private final Optional allowOfflineAccess; + private final Optional allowOnlineAccess; + private final Optional tokenLifetime; private final Optional tokenDialect; @@ -49,7 +51,7 @@ public final class CreateResourceServerRequestContent { private final OptionalNullable consentPolicy; - private final Optional> authorizationDetails; + private final OptionalNullable> authorizationDetails; private final OptionalNullable proofOfPossession; @@ -64,13 +66,14 @@ private CreateResourceServerRequestContent( Optional signingAlg, Optional signingSecret, Optional allowOfflineAccess, + Optional allowOnlineAccess, Optional tokenLifetime, Optional tokenDialect, Optional skipConsentForVerifiableFirstPartyClients, Optional enforcePolicies, OptionalNullable tokenEncryption, OptionalNullable consentPolicy, - Optional> authorizationDetails, + OptionalNullable> authorizationDetails, OptionalNullable proofOfPossession, Optional subjectTypeAuthorization, Map additionalProperties) { @@ -80,6 +83,7 @@ private CreateResourceServerRequestContent( this.signingAlg = signingAlg; this.signingSecret = signingSecret; this.allowOfflineAccess = allowOfflineAccess; + this.allowOnlineAccess = allowOnlineAccess; this.tokenLifetime = tokenLifetime; this.tokenDialect = tokenDialect; this.skipConsentForVerifiableFirstPartyClients = skipConsentForVerifiableFirstPartyClients; @@ -137,6 +141,14 @@ public Optional getAllowOfflineAccess() { return allowOfflineAccess; } + /** + * @return Whether Online Refresh Tokens can be issued for this API (true) or not (false). + */ + @JsonProperty("allow_online_access") + public Optional getAllowOnlineAccess() { + return allowOnlineAccess; + } + /** * @return Expiration value (in seconds) for access tokens issued for this API from the token endpoint. */ @@ -184,8 +196,12 @@ public OptionalNullable getConsentPolicy() { return consentPolicy; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("authorization_details") - public Optional> getAuthorizationDetails() { + public OptionalNullable> getAuthorizationDetails() { + if (authorizationDetails == null) { + return OptionalNullable.absent(); + } return authorizationDetails; } @@ -215,6 +231,12 @@ private OptionalNullable _getConsentPolicy() { return consentPolicy; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("authorization_details") + private OptionalNullable> _getAuthorizationDetails() { + return authorizationDetails; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("proof_of_possession") private OptionalNullable _getProofOfPossession() { @@ -240,6 +262,7 @@ private boolean equalTo(CreateResourceServerRequestContent other) { && signingAlg.equals(other.signingAlg) && signingSecret.equals(other.signingSecret) && allowOfflineAccess.equals(other.allowOfflineAccess) + && allowOnlineAccess.equals(other.allowOnlineAccess) && tokenLifetime.equals(other.tokenLifetime) && tokenDialect.equals(other.tokenDialect) && skipConsentForVerifiableFirstPartyClients.equals(other.skipConsentForVerifiableFirstPartyClients) @@ -260,6 +283,7 @@ public int hashCode() { this.signingAlg, this.signingSecret, this.allowOfflineAccess, + this.allowOnlineAccess, this.tokenLifetime, this.tokenDialect, this.skipConsentForVerifiableFirstPartyClients, @@ -328,6 +352,13 @@ public interface _FinalStage { _FinalStage allowOfflineAccess(Boolean allowOfflineAccess); + /** + *

Whether Online Refresh Tokens can be issued for this API (true) or not (false).

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

Expiration value (in seconds) for access tokens issued for this API from the token endpoint.

*/ @@ -370,10 +401,14 @@ _FinalStage skipConsentForVerifiableFirstPartyClients( _FinalStage consentPolicy(com.auth0.client.mgmt.core.Nullable consentPolicy); - _FinalStage authorizationDetails(Optional> authorizationDetails); + _FinalStage authorizationDetails(@Nullable OptionalNullable> authorizationDetails); _FinalStage authorizationDetails(List authorizationDetails); + _FinalStage authorizationDetails(Optional> authorizationDetails); + + _FinalStage authorizationDetails(com.auth0.client.mgmt.core.Nullable> authorizationDetails); + _FinalStage proofOfPossession(@Nullable OptionalNullable proofOfPossession); _FinalStage proofOfPossession(ResourceServerProofOfPossession proofOfPossession); @@ -396,7 +431,7 @@ public static final class Builder implements IdentifierStage, _FinalStage { private OptionalNullable proofOfPossession = OptionalNullable.absent(); - private Optional> authorizationDetails = Optional.empty(); + private OptionalNullable> authorizationDetails = OptionalNullable.absent(); private OptionalNullable consentPolicy = OptionalNullable.absent(); @@ -410,6 +445,8 @@ public static final class Builder implements IdentifierStage, _FinalStage { private Optional tokenLifetime = Optional.empty(); + private Optional allowOnlineAccess = Optional.empty(); + private Optional allowOfflineAccess = Optional.empty(); private Optional signingSecret = Optional.empty(); @@ -433,6 +470,7 @@ public Builder from(CreateResourceServerRequestContent other) { signingAlg(other.getSigningAlg()); signingSecret(other.getSigningSecret()); allowOfflineAccess(other.getAllowOfflineAccess()); + allowOnlineAccess(other.getAllowOnlineAccess()); tokenLifetime(other.getTokenLifetime()); tokenDialect(other.getTokenDialect()); skipConsentForVerifiableFirstPartyClients(other.getSkipConsentForVerifiableFirstPartyClients()); @@ -508,15 +546,38 @@ public _FinalStage proofOfPossession( return this; } + @java.lang.Override + public _FinalStage authorizationDetails( + com.auth0.client.mgmt.core.Nullable> authorizationDetails) { + if (authorizationDetails.isNull()) { + this.authorizationDetails = OptionalNullable.ofNull(); + } else if (authorizationDetails.isEmpty()) { + this.authorizationDetails = OptionalNullable.absent(); + } else { + this.authorizationDetails = OptionalNullable.of(authorizationDetails.get()); + } + return this; + } + + @java.lang.Override + public _FinalStage authorizationDetails(Optional> authorizationDetails) { + if (authorizationDetails.isPresent()) { + this.authorizationDetails = OptionalNullable.of(authorizationDetails.get()); + } else { + this.authorizationDetails = OptionalNullable.absent(); + } + return this; + } + @java.lang.Override public _FinalStage authorizationDetails(List authorizationDetails) { - this.authorizationDetails = Optional.ofNullable(authorizationDetails); + this.authorizationDetails = OptionalNullable.of(authorizationDetails); return this; } @java.lang.Override @JsonSetter(value = "authorization_details", nulls = Nulls.SKIP) - public _FinalStage authorizationDetails(Optional> authorizationDetails) { + public _FinalStage authorizationDetails(@Nullable OptionalNullable> authorizationDetails) { this.authorizationDetails = authorizationDetails; return this; } @@ -669,6 +730,26 @@ public _FinalStage tokenLifetime(Optional tokenLifetime) { return this; } + /** + *

Whether Online Refresh Tokens can be issued for this API (true) or not (false).

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

Whether Online Refresh Tokens can be issued for this API (true) or not (false).

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

Whether refresh tokens can be issued for this API (true) or not (false).

* @return Reference to {@code this} so that method calls can be chained together. @@ -771,6 +852,7 @@ public CreateResourceServerRequestContent build() { signingAlg, signingSecret, allowOfflineAccess, + allowOnlineAccess, tokenLifetime, tokenDialect, skipConsentForVerifiableFirstPartyClients, diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerResponseContent.java index 2e2cdc700..47335c692 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerResponseContent.java @@ -40,6 +40,8 @@ public final class CreateResourceServerResponseContent { private final Optional allowOfflineAccess; + private final Optional allowOnlineAccess; + private final Optional skipConsentForVerifiableFirstPartyClients; private final Optional tokenLifetime; @@ -54,7 +56,7 @@ public final class CreateResourceServerResponseContent { private final OptionalNullable consentPolicy; - private final Optional> authorizationDetails; + private final OptionalNullable> authorizationDetails; private final OptionalNullable proofOfPossession; @@ -73,6 +75,7 @@ private CreateResourceServerResponseContent( Optional signingAlg, Optional signingSecret, Optional allowOfflineAccess, + Optional allowOnlineAccess, Optional skipConsentForVerifiableFirstPartyClients, Optional tokenLifetime, Optional tokenLifetimeForWeb, @@ -80,7 +83,7 @@ private CreateResourceServerResponseContent( Optional tokenDialect, OptionalNullable tokenEncryption, OptionalNullable consentPolicy, - Optional> authorizationDetails, + OptionalNullable> authorizationDetails, OptionalNullable proofOfPossession, Optional subjectTypeAuthorization, Optional clientId, @@ -93,6 +96,7 @@ private CreateResourceServerResponseContent( this.signingAlg = signingAlg; this.signingSecret = signingSecret; this.allowOfflineAccess = allowOfflineAccess; + this.allowOnlineAccess = allowOnlineAccess; this.skipConsentForVerifiableFirstPartyClients = skipConsentForVerifiableFirstPartyClients; this.tokenLifetime = tokenLifetime; this.tokenLifetimeForWeb = tokenLifetimeForWeb; @@ -168,6 +172,14 @@ public Optional getAllowOfflineAccess() { return allowOfflineAccess; } + /** + * @return Whether Online Refresh Tokens can be issued for this API (true) or not (false). + */ + @JsonProperty("allow_online_access") + public Optional getAllowOnlineAccess() { + return allowOnlineAccess; + } + /** * @return Whether to skip user consent for applications flagged as first party (true) or not (false). */ @@ -223,8 +235,12 @@ public OptionalNullable getConsentPolicy() { return consentPolicy; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("authorization_details") - public Optional> getAuthorizationDetails() { + public OptionalNullable> getAuthorizationDetails() { + if (authorizationDetails == null) { + return OptionalNullable.absent(); + } return authorizationDetails; } @@ -262,6 +278,12 @@ private OptionalNullable _getConsentPolicy() { return consentPolicy; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("authorization_details") + private OptionalNullable> _getAuthorizationDetails() { + return authorizationDetails; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("proof_of_possession") private OptionalNullable _getProofOfPossession() { @@ -289,6 +311,7 @@ private boolean equalTo(CreateResourceServerResponseContent other) { && signingAlg.equals(other.signingAlg) && signingSecret.equals(other.signingSecret) && allowOfflineAccess.equals(other.allowOfflineAccess) + && allowOnlineAccess.equals(other.allowOnlineAccess) && skipConsentForVerifiableFirstPartyClients.equals(other.skipConsentForVerifiableFirstPartyClients) && tokenLifetime.equals(other.tokenLifetime) && tokenLifetimeForWeb.equals(other.tokenLifetimeForWeb) @@ -313,6 +336,7 @@ public int hashCode() { this.signingAlg, this.signingSecret, this.allowOfflineAccess, + this.allowOnlineAccess, this.skipConsentForVerifiableFirstPartyClients, this.tokenLifetime, this.tokenLifetimeForWeb, @@ -353,6 +377,8 @@ public static final class Builder { private Optional allowOfflineAccess = Optional.empty(); + private Optional allowOnlineAccess = Optional.empty(); + private Optional skipConsentForVerifiableFirstPartyClients = Optional.empty(); private Optional tokenLifetime = Optional.empty(); @@ -367,7 +393,7 @@ public static final class Builder { private OptionalNullable consentPolicy = OptionalNullable.absent(); - private Optional> authorizationDetails = Optional.empty(); + private OptionalNullable> authorizationDetails = OptionalNullable.absent(); private OptionalNullable proofOfPossession = OptionalNullable.absent(); @@ -389,6 +415,7 @@ public Builder from(CreateResourceServerResponseContent other) { signingAlg(other.getSigningAlg()); signingSecret(other.getSigningSecret()); allowOfflineAccess(other.getAllowOfflineAccess()); + allowOnlineAccess(other.getAllowOnlineAccess()); skipConsentForVerifiableFirstPartyClients(other.getSkipConsentForVerifiableFirstPartyClients()); tokenLifetime(other.getTokenLifetime()); tokenLifetimeForWeb(other.getTokenLifetimeForWeb()); @@ -512,6 +539,20 @@ public Builder allowOfflineAccess(Boolean allowOfflineAccess) { return this; } + /** + *

Whether Online Refresh Tokens can be issued for this API (true) or not (false).

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

Whether to skip user consent for applications flagged as first party (true) or not (false).

*/ @@ -646,13 +687,33 @@ public Builder consentPolicy( } @JsonSetter(value = "authorization_details", nulls = Nulls.SKIP) - public Builder authorizationDetails(Optional> authorizationDetails) { + public Builder authorizationDetails(@Nullable OptionalNullable> authorizationDetails) { this.authorizationDetails = authorizationDetails; return this; } public Builder authorizationDetails(List authorizationDetails) { - this.authorizationDetails = Optional.ofNullable(authorizationDetails); + this.authorizationDetails = OptionalNullable.of(authorizationDetails); + return this; + } + + public Builder authorizationDetails(Optional> authorizationDetails) { + if (authorizationDetails.isPresent()) { + this.authorizationDetails = OptionalNullable.of(authorizationDetails.get()); + } else { + this.authorizationDetails = OptionalNullable.absent(); + } + return this; + } + + public Builder authorizationDetails(com.auth0.client.mgmt.core.Nullable> authorizationDetails) { + if (authorizationDetails.isNull()) { + this.authorizationDetails = OptionalNullable.ofNull(); + } else if (authorizationDetails.isEmpty()) { + this.authorizationDetails = OptionalNullable.absent(); + } else { + this.authorizationDetails = OptionalNullable.of(authorizationDetails.get()); + } return this; } @@ -725,6 +786,7 @@ public CreateResourceServerResponseContent build() { signingAlg, signingSecret, allowOfflineAccess, + allowOnlineAccess, skipConsentForVerifiableFirstPartyClients, tokenLifetime, tokenLifetimeForWeb, diff --git a/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java b/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java index 7d8d587c0..b1807dda2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java +++ b/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java @@ -34,6 +34,8 @@ public final class DirectoryProvisioning { private final boolean synchronizeAutomatically; + private final Optional synchronizeGroups; + private final OffsetDateTime createdAt; private final OffsetDateTime updatedAt; @@ -52,6 +54,7 @@ private DirectoryProvisioning( String strategy, List mapping, boolean synchronizeAutomatically, + Optional synchronizeGroups, OffsetDateTime createdAt, OffsetDateTime updatedAt, Optional lastSynchronizationAt, @@ -63,6 +66,7 @@ private DirectoryProvisioning( this.strategy = strategy; this.mapping = mapping; this.synchronizeAutomatically = synchronizeAutomatically; + this.synchronizeGroups = synchronizeGroups; this.createdAt = createdAt; this.updatedAt = updatedAt; this.lastSynchronizationAt = lastSynchronizationAt; @@ -111,6 +115,11 @@ public boolean getSynchronizeAutomatically() { return synchronizeAutomatically; } + @JsonProperty("synchronize_groups") + public Optional getSynchronizeGroups() { + return synchronizeGroups; + } + /** * @return The timestamp at which the directory provisioning configuration was created */ @@ -168,6 +177,7 @@ private boolean equalTo(DirectoryProvisioning other) { && strategy.equals(other.strategy) && mapping.equals(other.mapping) && synchronizeAutomatically == other.synchronizeAutomatically + && synchronizeGroups.equals(other.synchronizeGroups) && createdAt.equals(other.createdAt) && updatedAt.equals(other.updatedAt) && lastSynchronizationAt.equals(other.lastSynchronizationAt) @@ -183,6 +193,7 @@ public int hashCode() { this.strategy, this.mapping, this.synchronizeAutomatically, + this.synchronizeGroups, this.createdAt, this.updatedAt, this.lastSynchronizationAt, @@ -259,6 +270,10 @@ public interface _FinalStage { _FinalStage addAllMapping(List mapping); + _FinalStage synchronizeGroups(Optional synchronizeGroups); + + _FinalStage synchronizeGroups(String synchronizeGroups); + /** *

The timestamp at which the connection was last synchronized

*/ @@ -308,6 +323,8 @@ public static final class Builder private Optional lastSynchronizationAt = Optional.empty(); + private Optional synchronizeGroups = Optional.empty(); + private List mapping = new ArrayList<>(); @JsonAnySetter @@ -322,6 +339,7 @@ public Builder from(DirectoryProvisioning other) { strategy(other.getStrategy()); mapping(other.getMapping()); synchronizeAutomatically(other.getSynchronizeAutomatically()); + synchronizeGroups(other.getSynchronizeGroups()); createdAt(other.getCreatedAt()); updatedAt(other.getUpdatedAt()); lastSynchronizationAt(other.getLastSynchronizationAt()); @@ -462,6 +480,19 @@ public _FinalStage lastSynchronizationAt(Optional lastSynchroniz return this; } + @java.lang.Override + public _FinalStage synchronizeGroups(String synchronizeGroups) { + this.synchronizeGroups = Optional.ofNullable(synchronizeGroups); + return this; + } + + @java.lang.Override + @JsonSetter(value = "synchronize_groups", nulls = Nulls.SKIP) + public _FinalStage synchronizeGroups(Optional synchronizeGroups) { + this.synchronizeGroups = synchronizeGroups; + return this; + } + /** *

The mapping between Auth0 and IDP user attributes

* @return Reference to {@code this} so that method calls can be chained together. @@ -505,6 +536,7 @@ public DirectoryProvisioning build() { strategy, mapping, synchronizeAutomatically, + synchronizeGroups, createdAt, updatedAt, lastSynchronizationAt, diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookAuthorizationResponse.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookAuthorizationResponse.java index 67ba0e358..059d7aa86 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookAuthorizationResponse.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookAuthorizationResponse.java @@ -35,6 +35,8 @@ public T visit(Visitor visitor) { return visitor.visit((EventStreamWebhookBasicAuth) this.value); } else if (this.type == 1) { return visitor.visit((EventStreamWebhookBearerAuth) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamWebhookCustomHeaderAuth) this.value); } throw new IllegalStateException("Failed to visit value. This should never happen."); } @@ -68,10 +70,16 @@ public static EventStreamWebhookAuthorizationResponse of(EventStreamWebhookBeare return new EventStreamWebhookAuthorizationResponse(value, 1); } + public static EventStreamWebhookAuthorizationResponse of(EventStreamWebhookCustomHeaderAuth value) { + return new EventStreamWebhookAuthorizationResponse(value, 2); + } + public interface Visitor { T visit(EventStreamWebhookBasicAuth value); T visit(EventStreamWebhookBearerAuth value); + + T visit(EventStreamWebhookCustomHeaderAuth value); } static final class Deserializer extends StdDeserializer { @@ -91,6 +99,10 @@ public EventStreamWebhookAuthorizationResponse deserialize(JsonParser p, Deseria return of(ObjectMappers.JSON_MAPPER.convertValue(value, EventStreamWebhookBearerAuth.class)); } catch (RuntimeException e) { } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, EventStreamWebhookCustomHeaderAuth.class)); + } catch (RuntimeException e) { + } throw new JsonParseException(p, "Failed to deserialize"); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookCustomHeaderAuth.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookCustomHeaderAuth.java new file mode 100644 index 000000000..3d9b9bd39 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookCustomHeaderAuth.java @@ -0,0 +1,155 @@ +/** + * 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.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamWebhookCustomHeaderAuth.Builder.class) +public final class EventStreamWebhookCustomHeaderAuth { + private final EventStreamWebhookCustomHeaderAuthMethodEnum method; + + private final String headerKey; + + private final Map additionalProperties; + + private EventStreamWebhookCustomHeaderAuth( + EventStreamWebhookCustomHeaderAuthMethodEnum method, + String headerKey, + Map additionalProperties) { + this.method = method; + this.headerKey = headerKey; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("method") + public EventStreamWebhookCustomHeaderAuthMethodEnum getMethod() { + return method; + } + + /** + * @return HTTP header name. + */ + @JsonProperty("header_key") + public String getHeaderKey() { + return headerKey; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamWebhookCustomHeaderAuth + && equalTo((EventStreamWebhookCustomHeaderAuth) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamWebhookCustomHeaderAuth other) { + return method.equals(other.method) && headerKey.equals(other.headerKey); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.method, this.headerKey); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static MethodStage builder() { + return new Builder(); + } + + public interface MethodStage { + HeaderKeyStage method(@NotNull EventStreamWebhookCustomHeaderAuthMethodEnum method); + + Builder from(EventStreamWebhookCustomHeaderAuth other); + } + + public interface HeaderKeyStage { + /** + *

HTTP header name.

+ */ + _FinalStage headerKey(@NotNull String headerKey); + } + + public interface _FinalStage { + EventStreamWebhookCustomHeaderAuth build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements MethodStage, HeaderKeyStage, _FinalStage { + private EventStreamWebhookCustomHeaderAuthMethodEnum method; + + private String headerKey; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamWebhookCustomHeaderAuth other) { + method(other.getMethod()); + headerKey(other.getHeaderKey()); + return this; + } + + @java.lang.Override + @JsonSetter("method") + public HeaderKeyStage method(@NotNull EventStreamWebhookCustomHeaderAuthMethodEnum method) { + this.method = Objects.requireNonNull(method, "method must not be null"); + return this; + } + + /** + *

HTTP header name.

+ *

HTTP header name.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("header_key") + public _FinalStage headerKey(@NotNull String headerKey) { + this.headerKey = Objects.requireNonNull(headerKey, "headerKey must not be null"); + return this; + } + + @java.lang.Override + public EventStreamWebhookCustomHeaderAuth build() { + return new EventStreamWebhookCustomHeaderAuth(method, headerKey, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenrenStrategy.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookCustomHeaderAuthMethodEnum.java similarity index 57% rename from src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenrenStrategy.java rename to src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookCustomHeaderAuthMethodEnum.java index bbca7fd25..d6ae60bce 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenrenStrategy.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookCustomHeaderAuthMethodEnum.java @@ -6,15 +6,15 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -public final class CreateConnectionRequestContentRenrenStrategy { - public static final CreateConnectionRequestContentRenrenStrategy RENREN = - new CreateConnectionRequestContentRenrenStrategy(Value.RENREN, "renren"); +public final class EventStreamWebhookCustomHeaderAuthMethodEnum { + public static final EventStreamWebhookCustomHeaderAuthMethodEnum CUSTOM_HEADER = + new EventStreamWebhookCustomHeaderAuthMethodEnum(Value.CUSTOM_HEADER, "custom_header"); private final Value value; private final String string; - CreateConnectionRequestContentRenrenStrategy(Value value, String string) { + EventStreamWebhookCustomHeaderAuthMethodEnum(Value value, String string) { this.value = value; this.string = string; } @@ -32,8 +32,8 @@ public String toString() { @java.lang.Override public boolean equals(Object other) { return (this == other) - || (other instanceof CreateConnectionRequestContentRenrenStrategy - && this.string.equals(((CreateConnectionRequestContentRenrenStrategy) other).string)); + || (other instanceof EventStreamWebhookCustomHeaderAuthMethodEnum + && this.string.equals(((EventStreamWebhookCustomHeaderAuthMethodEnum) other).string)); } @java.lang.Override @@ -43,8 +43,8 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { - case RENREN: - return visitor.visitRenren(); + case CUSTOM_HEADER: + return visitor.visitCustomHeader(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -52,23 +52,23 @@ public T visit(Visitor visitor) { } @JsonCreator(mode = JsonCreator.Mode.DELEGATING) - public static CreateConnectionRequestContentRenrenStrategy valueOf(String value) { + public static EventStreamWebhookCustomHeaderAuthMethodEnum valueOf(String value) { switch (value) { - case "renren": - return RENREN; + case "custom_header": + return CUSTOM_HEADER; default: - return new CreateConnectionRequestContentRenrenStrategy(Value.UNKNOWN, value); + return new EventStreamWebhookCustomHeaderAuthMethodEnum(Value.UNKNOWN, value); } } public enum Value { - RENREN, + CUSTOM_HEADER, UNKNOWN } public interface Visitor { - T visitRenren(); + T visitCustomHeader(); T visitUnknown(String unknownType); } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetActionExecutionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetActionExecutionResponseContent.java index 9aa526830..d4f945ecf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetActionExecutionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetActionExecutionResponseContent.java @@ -24,7 +24,7 @@ public final class GetActionExecutionResponseContent { private final Optional id; - private final Optional triggerId; + private final Optional triggerId; private final Optional status; @@ -38,7 +38,7 @@ public final class GetActionExecutionResponseContent { private GetActionExecutionResponseContent( Optional id, - Optional triggerId, + Optional triggerId, Optional status, Optional> results, Optional createdAt, @@ -62,7 +62,7 @@ public Optional getId() { } @JsonProperty("trigger_id") - public Optional getTriggerId() { + public Optional getTriggerId() { return triggerId; } @@ -130,7 +130,7 @@ public static Builder builder() { public static final class Builder { private Optional id = Optional.empty(); - private Optional triggerId = Optional.empty(); + private Optional triggerId = Optional.empty(); private Optional status = Optional.empty(); @@ -170,12 +170,12 @@ public Builder id(String id) { } @JsonSetter(value = "trigger_id", nulls = Nulls.SKIP) - public Builder triggerId(Optional triggerId) { + public Builder triggerId(Optional triggerId) { this.triggerId = triggerId; return this; } - public Builder triggerId(String triggerId) { + public Builder triggerId(ActionTriggerTypeEnum triggerId) { this.triggerId = Optional.ofNullable(triggerId); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java index ccda69509..e15a421f2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java @@ -32,13 +32,13 @@ public final class GetAculResponseContent { private final Optional renderingMode; - private final Optional> contextConfiguration; + private final OptionalNullable> contextConfiguration; private final OptionalNullable defaultHeadTagsDisabled; private final OptionalNullable usePageTemplate; - private final Optional> headTags; + private final OptionalNullable> headTags; private final OptionalNullable filters; @@ -49,10 +49,10 @@ private GetAculResponseContent( Optional prompt, Optional screen, Optional renderingMode, - Optional> contextConfiguration, + OptionalNullable> contextConfiguration, OptionalNullable defaultHeadTagsDisabled, OptionalNullable usePageTemplate, - Optional> headTags, + OptionalNullable> headTags, OptionalNullable filters, Map additionalProperties) { this.tenant = tenant; @@ -99,8 +99,12 @@ public Optional getRenderingMode() { return renderingMode; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("context_configuration") - public Optional> getContextConfiguration() { + public OptionalNullable> getContextConfiguration() { + if (contextConfiguration == null) { + return OptionalNullable.absent(); + } return contextConfiguration; } @@ -131,8 +135,12 @@ public OptionalNullable getUsePageTemplate() { /** * @return An array of head tags */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("head_tags") - public Optional> getHeadTags() { + public OptionalNullable> getHeadTags() { + if (headTags == null) { + return OptionalNullable.absent(); + } return headTags; } @@ -145,6 +153,12 @@ public OptionalNullable getFilters() { return filters; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("context_configuration") + private OptionalNullable> _getContextConfiguration() { + return contextConfiguration; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("default_head_tags_disabled") private OptionalNullable _getDefaultHeadTagsDisabled() { @@ -157,6 +171,12 @@ private OptionalNullable _getUsePageTemplate() { return usePageTemplate; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("head_tags") + private OptionalNullable> _getHeadTags() { + return headTags; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("filters") private OptionalNullable _getFilters() { @@ -219,13 +239,13 @@ public static final class Builder { private Optional renderingMode = Optional.empty(); - private Optional> contextConfiguration = Optional.empty(); + private OptionalNullable> contextConfiguration = OptionalNullable.absent(); private OptionalNullable defaultHeadTagsDisabled = OptionalNullable.absent(); private OptionalNullable usePageTemplate = OptionalNullable.absent(); - private Optional> headTags = Optional.empty(); + private OptionalNullable> headTags = OptionalNullable.absent(); private OptionalNullable filters = OptionalNullable.absent(); @@ -304,13 +324,35 @@ public Builder renderingMode(AculRenderingModeEnum renderingMode) { } @JsonSetter(value = "context_configuration", nulls = Nulls.SKIP) - public Builder contextConfiguration(Optional> contextConfiguration) { + public Builder contextConfiguration( + @Nullable OptionalNullable> contextConfiguration) { this.contextConfiguration = contextConfiguration; return this; } public Builder contextConfiguration(List contextConfiguration) { - this.contextConfiguration = Optional.ofNullable(contextConfiguration); + this.contextConfiguration = OptionalNullable.of(contextConfiguration); + return this; + } + + public Builder contextConfiguration(Optional> contextConfiguration) { + if (contextConfiguration.isPresent()) { + this.contextConfiguration = OptionalNullable.of(contextConfiguration.get()); + } else { + this.contextConfiguration = OptionalNullable.absent(); + } + return this; + } + + public Builder contextConfiguration( + com.auth0.client.mgmt.core.Nullable> contextConfiguration) { + if (contextConfiguration.isNull()) { + this.contextConfiguration = OptionalNullable.ofNull(); + } else if (contextConfiguration.isEmpty()) { + this.contextConfiguration = OptionalNullable.absent(); + } else { + this.contextConfiguration = OptionalNullable.of(contextConfiguration.get()); + } return this; } @@ -386,13 +428,33 @@ public Builder usePageTemplate(com.auth0.client.mgmt.core.Nullable useP *

An array of head tags

*/ @JsonSetter(value = "head_tags", nulls = Nulls.SKIP) - public Builder headTags(Optional> headTags) { + public Builder headTags(@Nullable OptionalNullable> headTags) { this.headTags = headTags; return this; } public Builder headTags(List headTags) { - this.headTags = Optional.ofNullable(headTags); + this.headTags = OptionalNullable.of(headTags); + return this; + } + + public Builder headTags(Optional> headTags) { + if (headTags.isPresent()) { + this.headTags = OptionalNullable.of(headTags.get()); + } else { + this.headTags = OptionalNullable.absent(); + } + return this; + } + + public Builder headTags(com.auth0.client.mgmt.core.Nullable> headTags) { + if (headTags.isNull()) { + this.headTags = OptionalNullable.ofNull(); + } else if (headTags.isEmpty()) { + this.headTags = OptionalNullable.absent(); + } else { + this.headTags = OptionalNullable.of(headTags.get()); + } return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java index 8e85b787f..055ebd4b8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java @@ -64,7 +64,7 @@ public final class GetClientResponseContent { private final Optional jwtConfiguration; - private final Optional> signingKeys; + private final OptionalNullable> signingKeys; private final OptionalNullable encryptionKey; @@ -130,6 +130,14 @@ public final class GetClientResponseContent { private final Optional> asyncApprovalNotificationChannels; + private final Optional externalMetadataType; + + private final Optional externalMetadataCreatedBy; + + private final Optional externalClientId; + + private final Optional jwksUri; + private final Map additionalProperties; private GetClientResponseContent( @@ -153,7 +161,7 @@ private GetClientResponseContent( Optional oidcLogout, Optional> grantTypes, Optional jwtConfiguration, - Optional> signingKeys, + OptionalNullable> signingKeys, OptionalNullable encryptionKey, Optional sso, Optional ssoDisabled, @@ -186,6 +194,10 @@ private GetClientResponseContent( Optional expressConfiguration, Optional resourceServerIdentifier, Optional> asyncApprovalNotificationChannels, + Optional externalMetadataType, + Optional externalMetadataCreatedBy, + Optional externalClientId, + Optional jwksUri, Map additionalProperties) { this.clientId = clientId; this.tenant = tenant; @@ -240,6 +252,10 @@ private GetClientResponseContent( this.expressConfiguration = expressConfiguration; this.resourceServerIdentifier = resourceServerIdentifier; this.asyncApprovalNotificationChannels = asyncApprovalNotificationChannels; + this.externalMetadataType = externalMetadataType; + this.externalMetadataCreatedBy = externalMetadataCreatedBy; + this.externalClientId = externalClientId; + this.jwksUri = jwksUri; this.additionalProperties = additionalProperties; } @@ -395,8 +411,12 @@ public Optional getJwtConfiguration() { return jwtConfiguration; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("signing_keys") - public Optional> getSigningKeys() { + public OptionalNullable> getSigningKeys() { + if (signingKeys == null) { + return OptionalNullable.absent(); + } return signingKeys; } @@ -634,12 +654,44 @@ public Optional> getAsyncApprovalNo return asyncApprovalNotificationChannels; } + @JsonProperty("external_metadata_type") + public Optional getExternalMetadataType() { + return externalMetadataType; + } + + @JsonProperty("external_metadata_created_by") + public Optional getExternalMetadataCreatedBy() { + return externalMetadataCreatedBy; + } + + /** + * @return An alternate client identifier to be used during authorization flows. Only supports CIMD-based client identifiers. + */ + @JsonProperty("external_client_id") + public Optional getExternalClientId() { + return externalClientId; + } + + /** + * @return URL for the JSON Web Key Set (JWKS) containing the public keys used for private_key_jwt authentication. Only present for CIMD clients using private_key_jwt authentication. + */ + @JsonProperty("jwks_uri") + public Optional getJwksUri() { + return jwksUri; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_transfer") private OptionalNullable _getSessionTransfer() { return sessionTransfer; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("signing_keys") + private OptionalNullable> _getSigningKeys() { + return signingKeys; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("encryption_key") private OptionalNullable _getEncryptionKey() { @@ -741,7 +793,11 @@ private boolean equalTo(GetClientResponseContent other) { && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) && resourceServerIdentifier.equals(other.resourceServerIdentifier) - && asyncApprovalNotificationChannels.equals(other.asyncApprovalNotificationChannels); + && asyncApprovalNotificationChannels.equals(other.asyncApprovalNotificationChannels) + && externalMetadataType.equals(other.externalMetadataType) + && externalMetadataCreatedBy.equals(other.externalMetadataCreatedBy) + && externalClientId.equals(other.externalClientId) + && jwksUri.equals(other.jwksUri); } @java.lang.Override @@ -799,7 +855,11 @@ public int hashCode() { this.tokenQuota, this.expressConfiguration, this.resourceServerIdentifier, - this.asyncApprovalNotificationChannels); + this.asyncApprovalNotificationChannels, + this.externalMetadataType, + this.externalMetadataCreatedBy, + this.externalClientId, + this.jwksUri); } @java.lang.Override @@ -853,7 +913,7 @@ public static final class Builder { private Optional jwtConfiguration = Optional.empty(); - private Optional> signingKeys = Optional.empty(); + private OptionalNullable> signingKeys = OptionalNullable.absent(); private OptionalNullable encryptionKey = OptionalNullable.absent(); @@ -920,6 +980,14 @@ public static final class Builder { private Optional> asyncApprovalNotificationChannels = Optional.empty(); + private Optional externalMetadataType = Optional.empty(); + + private Optional externalMetadataCreatedBy = Optional.empty(); + + private Optional externalClientId = Optional.empty(); + + private Optional jwksUri = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -979,6 +1047,10 @@ public Builder from(GetClientResponseContent other) { expressConfiguration(other.getExpressConfiguration()); resourceServerIdentifier(other.getResourceServerIdentifier()); asyncApprovalNotificationChannels(other.getAsyncApprovalNotificationChannels()); + externalMetadataType(other.getExternalMetadataType()); + externalMetadataCreatedBy(other.getExternalMetadataCreatedBy()); + externalClientId(other.getExternalClientId()); + jwksUri(other.getJwksUri()); return this; } @@ -1272,13 +1344,33 @@ public Builder jwtConfiguration(ClientJwtConfiguration jwtConfiguration) { } @JsonSetter(value = "signing_keys", nulls = Nulls.SKIP) - public Builder signingKeys(Optional> signingKeys) { + public Builder signingKeys(@Nullable OptionalNullable> signingKeys) { this.signingKeys = signingKeys; return this; } public Builder signingKeys(List signingKeys) { - this.signingKeys = Optional.ofNullable(signingKeys); + this.signingKeys = OptionalNullable.of(signingKeys); + return this; + } + + public Builder signingKeys(Optional> signingKeys) { + if (signingKeys.isPresent()) { + this.signingKeys = OptionalNullable.of(signingKeys.get()); + } else { + this.signingKeys = OptionalNullable.absent(); + } + return this; + } + + public Builder signingKeys(com.auth0.client.mgmt.core.Nullable> signingKeys) { + if (signingKeys.isNull()) { + this.signingKeys = OptionalNullable.ofNull(); + } else if (signingKeys.isEmpty()) { + this.signingKeys = OptionalNullable.absent(); + } else { + this.signingKeys = OptionalNullable.of(signingKeys.get()); + } return this; } @@ -1815,6 +1907,57 @@ public Builder asyncApprovalNotificationChannels( return this; } + @JsonSetter(value = "external_metadata_type", nulls = Nulls.SKIP) + public Builder externalMetadataType(Optional externalMetadataType) { + this.externalMetadataType = externalMetadataType; + return this; + } + + public Builder externalMetadataType(ClientExternalMetadataTypeEnum externalMetadataType) { + this.externalMetadataType = Optional.ofNullable(externalMetadataType); + return this; + } + + @JsonSetter(value = "external_metadata_created_by", nulls = Nulls.SKIP) + public Builder externalMetadataCreatedBy( + Optional externalMetadataCreatedBy) { + this.externalMetadataCreatedBy = externalMetadataCreatedBy; + return this; + } + + public Builder externalMetadataCreatedBy(ClientExternalMetadataCreatedByEnum externalMetadataCreatedBy) { + this.externalMetadataCreatedBy = Optional.ofNullable(externalMetadataCreatedBy); + return this; + } + + /** + *

An alternate client identifier to be used during authorization flows. Only supports CIMD-based client identifiers.

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

URL for the JSON Web Key Set (JWKS) containing the public keys used for private_key_jwt authentication. Only present for CIMD clients using private_key_jwt authentication.

+ */ + @JsonSetter(value = "jwks_uri", nulls = Nulls.SKIP) + public Builder jwksUri(Optional jwksUri) { + this.jwksUri = jwksUri; + return this; + } + + public Builder jwksUri(String jwksUri) { + this.jwksUri = Optional.ofNullable(jwksUri); + return this; + } + public GetClientResponseContent build() { return new GetClientResponseContent( clientId, @@ -1870,6 +2013,10 @@ public GetClientResponseContent build() { expressConfiguration, resourceServerIdentifier, asyncApprovalNotificationChannels, + externalMetadataType, + externalMetadataCreatedBy, + externalClientId, + jwksUri, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetDefaultCanonicalDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetDefaultCanonicalDomainResponseContent.java new file mode 100644 index 000000000..007d88de9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/GetDefaultCanonicalDomainResponseContent.java @@ -0,0 +1,130 @@ +/** + * 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.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = GetDefaultCanonicalDomainResponseContent.Builder.class) +public final class GetDefaultCanonicalDomainResponseContent { + private final String domain; + + private final Map additionalProperties; + + private GetDefaultCanonicalDomainResponseContent(String domain, Map additionalProperties) { + this.domain = domain; + this.additionalProperties = additionalProperties; + } + + /** + * @return Domain name. + */ + @JsonProperty("domain") + public String getDomain() { + return domain; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof GetDefaultCanonicalDomainResponseContent + && equalTo((GetDefaultCanonicalDomainResponseContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(GetDefaultCanonicalDomainResponseContent other) { + return domain.equals(other.domain); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.domain); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static DomainStage builder() { + return new Builder(); + } + + public interface DomainStage { + /** + *

Domain name.

+ */ + _FinalStage domain(@NotNull String domain); + + Builder from(GetDefaultCanonicalDomainResponseContent other); + } + + public interface _FinalStage { + GetDefaultCanonicalDomainResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements DomainStage, _FinalStage { + private String domain; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(GetDefaultCanonicalDomainResponseContent other) { + domain(other.getDomain()); + return this; + } + + /** + *

Domain name.

+ *

Domain name.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("domain") + public _FinalStage domain(@NotNull String domain) { + this.domain = Objects.requireNonNull(domain, "domain must not be null"); + return this; + } + + @java.lang.Override + public GetDefaultCanonicalDomainResponseContent build() { + return new GetDefaultCanonicalDomainResponseContent(domain, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/GetDefaultCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetDefaultCustomDomainResponseContent.java new file mode 100644 index 000000000..9b94899c6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/GetDefaultCustomDomainResponseContent.java @@ -0,0 +1,632 @@ +/** + * 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.NotNull; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = GetDefaultCustomDomainResponseContent.Builder.class) +public final class GetDefaultCustomDomainResponseContent { + private final String customDomainId; + + private final String domain; + + private final boolean primary; + + private final Optional isDefault; + + private final CustomDomainStatusFilterEnum status; + + private final CustomDomainTypeEnum type; + + private final Optional originDomainName; + + private final Optional verification; + + private final OptionalNullable customClientIpHeader; + + private final Optional tlsPolicy; + + private final Optional>> domainMetadata; + + private final Optional certificate; + + private final Optional relyingPartyIdentifier; + + private final Map additionalProperties; + + private GetDefaultCustomDomainResponseContent( + String customDomainId, + String domain, + boolean primary, + Optional isDefault, + CustomDomainStatusFilterEnum status, + CustomDomainTypeEnum type, + Optional originDomainName, + Optional verification, + OptionalNullable customClientIpHeader, + Optional tlsPolicy, + Optional>> domainMetadata, + Optional certificate, + Optional relyingPartyIdentifier, + Map additionalProperties) { + this.customDomainId = customDomainId; + this.domain = domain; + this.primary = primary; + this.isDefault = isDefault; + this.status = status; + this.type = type; + this.originDomainName = originDomainName; + this.verification = verification; + this.customClientIpHeader = customClientIpHeader; + this.tlsPolicy = tlsPolicy; + this.domainMetadata = domainMetadata; + this.certificate = certificate; + this.relyingPartyIdentifier = relyingPartyIdentifier; + this.additionalProperties = additionalProperties; + } + + /** + * @return ID of the custom domain. + */ + @JsonProperty("custom_domain_id") + public String getCustomDomainId() { + return customDomainId; + } + + /** + * @return Domain name. + */ + @JsonProperty("domain") + public String getDomain() { + return domain; + } + + /** + * @return Whether this is a primary domain (true) or not (false). + */ + @JsonProperty("primary") + 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; + } + + @JsonProperty("type") + public CustomDomainTypeEnum getType() { + return type; + } + + /** + * @return Intermediate address. + */ + @JsonProperty("origin_domain_name") + public Optional getOriginDomainName() { + return originDomainName; + } + + @JsonProperty("verification") + public Optional getVerification() { + return verification; + } + + /** + * @return The HTTP header to fetch the client's IP address + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("custom_client_ip_header") + public OptionalNullable getCustomClientIpHeader() { + if (customClientIpHeader == null) { + return OptionalNullable.absent(); + } + return customClientIpHeader; + } + + /** + * @return The TLS version policy + */ + @JsonProperty("tls_policy") + public Optional getTlsPolicy() { + return tlsPolicy; + } + + @JsonProperty("domain_metadata") + public Optional>> getDomainMetadata() { + return domainMetadata; + } + + @JsonProperty("certificate") + public Optional getCertificate() { + return certificate; + } + + /** + * @return Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not present, the full domain will be used. + */ + @JsonProperty("relying_party_identifier") + public Optional getRelyingPartyIdentifier() { + return relyingPartyIdentifier; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("custom_client_ip_header") + private OptionalNullable _getCustomClientIpHeader() { + return customClientIpHeader; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof GetDefaultCustomDomainResponseContent + && equalTo((GetDefaultCustomDomainResponseContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(GetDefaultCustomDomainResponseContent 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) + && verification.equals(other.verification) + && customClientIpHeader.equals(other.customClientIpHeader) + && tlsPolicy.equals(other.tlsPolicy) + && domainMetadata.equals(other.domainMetadata) + && certificate.equals(other.certificate) + && relyingPartyIdentifier.equals(other.relyingPartyIdentifier); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.customDomainId, + this.domain, + this.primary, + this.isDefault, + this.status, + this.type, + this.originDomainName, + this.verification, + this.customClientIpHeader, + this.tlsPolicy, + this.domainMetadata, + this.certificate, + this.relyingPartyIdentifier); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static CustomDomainIdStage builder() { + return new Builder(); + } + + public interface CustomDomainIdStage { + /** + *

ID of the custom domain.

+ */ + DomainStage customDomainId(@NotNull String customDomainId); + + Builder from(GetDefaultCustomDomainResponseContent other); + } + + public interface DomainStage { + /** + *

Domain name.

+ */ + PrimaryStage domain(@NotNull String domain); + } + + public interface PrimaryStage { + /** + *

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

+ */ + StatusStage primary(boolean primary); + } + + public interface StatusStage { + TypeStage status(@NotNull CustomDomainStatusFilterEnum status); + } + + public interface TypeStage { + _FinalStage type(@NotNull CustomDomainTypeEnum type); + } + + public interface _FinalStage { + GetDefaultCustomDomainResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

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

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

Intermediate address.

+ */ + _FinalStage originDomainName(Optional originDomainName); + + _FinalStage originDomainName(String originDomainName); + + _FinalStage verification(Optional verification); + + _FinalStage verification(DomainVerification verification); + + /** + *

The HTTP header to fetch the client's IP address

+ */ + _FinalStage customClientIpHeader(@Nullable OptionalNullable customClientIpHeader); + + _FinalStage customClientIpHeader(String customClientIpHeader); + + _FinalStage customClientIpHeader(Optional customClientIpHeader); + + _FinalStage customClientIpHeader(com.auth0.client.mgmt.core.Nullable customClientIpHeader); + + /** + *

The TLS version policy

+ */ + _FinalStage tlsPolicy(Optional tlsPolicy); + + _FinalStage tlsPolicy(String tlsPolicy); + + _FinalStage domainMetadata(Optional>> domainMetadata); + + _FinalStage domainMetadata(Map> domainMetadata); + + _FinalStage certificate(Optional certificate); + + _FinalStage certificate(DomainCertificate certificate); + + /** + *

Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not present, the full domain will be used.

+ */ + _FinalStage relyingPartyIdentifier(Optional relyingPartyIdentifier); + + _FinalStage relyingPartyIdentifier(String relyingPartyIdentifier); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements CustomDomainIdStage, DomainStage, PrimaryStage, StatusStage, TypeStage, _FinalStage { + private String customDomainId; + + private String domain; + + private boolean primary; + + private CustomDomainStatusFilterEnum status; + + private CustomDomainTypeEnum type; + + private Optional relyingPartyIdentifier = Optional.empty(); + + private Optional certificate = Optional.empty(); + + private Optional>> domainMetadata = Optional.empty(); + + private Optional tlsPolicy = Optional.empty(); + + private OptionalNullable customClientIpHeader = OptionalNullable.absent(); + + private Optional verification = Optional.empty(); + + private Optional originDomainName = Optional.empty(); + + private Optional isDefault = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(GetDefaultCustomDomainResponseContent other) { + customDomainId(other.getCustomDomainId()); + domain(other.getDomain()); + primary(other.getPrimary()); + isDefault(other.getIsDefault()); + status(other.getStatus()); + type(other.getType()); + originDomainName(other.getOriginDomainName()); + verification(other.getVerification()); + customClientIpHeader(other.getCustomClientIpHeader()); + tlsPolicy(other.getTlsPolicy()); + domainMetadata(other.getDomainMetadata()); + certificate(other.getCertificate()); + relyingPartyIdentifier(other.getRelyingPartyIdentifier()); + return this; + } + + /** + *

ID of the custom domain.

+ *

ID of the custom domain.

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

Domain name.

+ *

Domain name.

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

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

+ *

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

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("primary") + public StatusStage primary(boolean primary) { + this.primary = primary; + return this; + } + + @java.lang.Override + @JsonSetter("status") + public TypeStage status(@NotNull CustomDomainStatusFilterEnum status) { + this.status = Objects.requireNonNull(status, "status must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("type") + public _FinalStage type(@NotNull CustomDomainTypeEnum type) { + this.type = Objects.requireNonNull(type, "type must not be null"); + return this; + } + + /** + *

Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not present, the full domain will be used.

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

Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not present, the full domain will be used.

+ */ + @java.lang.Override + @JsonSetter(value = "relying_party_identifier", nulls = Nulls.SKIP) + public _FinalStage relyingPartyIdentifier(Optional relyingPartyIdentifier) { + this.relyingPartyIdentifier = relyingPartyIdentifier; + return this; + } + + @java.lang.Override + public _FinalStage certificate(DomainCertificate certificate) { + this.certificate = Optional.ofNullable(certificate); + return this; + } + + @java.lang.Override + @JsonSetter(value = "certificate", nulls = Nulls.SKIP) + public _FinalStage certificate(Optional certificate) { + this.certificate = certificate; + return this; + } + + @java.lang.Override + public _FinalStage domainMetadata(Map> domainMetadata) { + this.domainMetadata = Optional.ofNullable(domainMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "domain_metadata", nulls = Nulls.SKIP) + public _FinalStage domainMetadata(Optional>> domainMetadata) { + this.domainMetadata = domainMetadata; + return this; + } + + /** + *

The TLS version policy

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

The TLS version policy

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

The HTTP header to fetch the client's IP address

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

The HTTP header to fetch the client's IP address

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

The HTTP header to fetch the client's IP address

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

The HTTP header to fetch the client's IP address

+ */ + @java.lang.Override + @JsonSetter(value = "custom_client_ip_header", nulls = Nulls.SKIP) + public _FinalStage customClientIpHeader(@Nullable OptionalNullable customClientIpHeader) { + this.customClientIpHeader = customClientIpHeader; + return this; + } + + @java.lang.Override + public _FinalStage verification(DomainVerification verification) { + this.verification = Optional.ofNullable(verification); + return this; + } + + @java.lang.Override + @JsonSetter(value = "verification", nulls = Nulls.SKIP) + public _FinalStage verification(Optional verification) { + this.verification = verification; + return this; + } + + /** + *

Intermediate address.

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

Intermediate address.

+ */ + @java.lang.Override + @JsonSetter(value = "origin_domain_name", nulls = Nulls.SKIP) + public _FinalStage originDomainName(Optional originDomainName) { + this.originDomainName = 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 GetDefaultCustomDomainResponseContent build() { + return new GetDefaultCustomDomainResponseContent( + customDomainId, + domain, + primary, + isDefault, + status, + type, + originDomainName, + verification, + customClientIpHeader, + tlsPolicy, + domainMetadata, + certificate, + relyingPartyIdentifier, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/GetDefaultDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetDefaultDomainResponseContent.java new file mode 100644 index 000000000..b6d09d985 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/GetDefaultDomainResponseContent.java @@ -0,0 +1,97 @@ +/** + * 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.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = GetDefaultDomainResponseContent.Deserializer.class) +public final class GetDefaultDomainResponseContent { + private final Object value; + + private final int type; + + private GetDefaultDomainResponseContent(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((GetDefaultCustomDomainResponseContent) this.value); + } else if (this.type == 1) { + return visitor.visit((GetDefaultCanonicalDomainResponseContent) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof GetDefaultDomainResponseContent && equalTo((GetDefaultDomainResponseContent) other); + } + + private boolean equalTo(GetDefaultDomainResponseContent other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static GetDefaultDomainResponseContent of(GetDefaultCustomDomainResponseContent value) { + return new GetDefaultDomainResponseContent(value, 0); + } + + public static GetDefaultDomainResponseContent of(GetDefaultCanonicalDomainResponseContent value) { + return new GetDefaultDomainResponseContent(value, 1); + } + + public interface Visitor { + T visit(GetDefaultCustomDomainResponseContent value); + + T visit(GetDefaultCanonicalDomainResponseContent value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(GetDefaultDomainResponseContent.class); + } + + @java.lang.Override + public GetDefaultDomainResponseContent deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, GetDefaultCustomDomainResponseContent.class)); + } catch (RuntimeException e) { + } + try { + return of( + ObjectMappers.JSON_MAPPER.convertValue(value, GetDefaultCanonicalDomainResponseContent.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java index ab9e43466..1947b1e64 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java @@ -34,6 +34,8 @@ public final class GetDirectoryProvisioningResponseContent { private final boolean synchronizeAutomatically; + private final Optional synchronizeGroups; + private final OffsetDateTime createdAt; private final OffsetDateTime updatedAt; @@ -52,6 +54,7 @@ private GetDirectoryProvisioningResponseContent( String strategy, List mapping, boolean synchronizeAutomatically, + Optional synchronizeGroups, OffsetDateTime createdAt, OffsetDateTime updatedAt, Optional lastSynchronizationAt, @@ -63,6 +66,7 @@ private GetDirectoryProvisioningResponseContent( this.strategy = strategy; this.mapping = mapping; this.synchronizeAutomatically = synchronizeAutomatically; + this.synchronizeGroups = synchronizeGroups; this.createdAt = createdAt; this.updatedAt = updatedAt; this.lastSynchronizationAt = lastSynchronizationAt; @@ -111,6 +115,11 @@ public boolean getSynchronizeAutomatically() { return synchronizeAutomatically; } + @JsonProperty("synchronize_groups") + public Optional getSynchronizeGroups() { + return synchronizeGroups; + } + /** * @return The timestamp at which the directory provisioning configuration was created */ @@ -169,6 +178,7 @@ private boolean equalTo(GetDirectoryProvisioningResponseContent other) { && strategy.equals(other.strategy) && mapping.equals(other.mapping) && synchronizeAutomatically == other.synchronizeAutomatically + && synchronizeGroups.equals(other.synchronizeGroups) && createdAt.equals(other.createdAt) && updatedAt.equals(other.updatedAt) && lastSynchronizationAt.equals(other.lastSynchronizationAt) @@ -184,6 +194,7 @@ public int hashCode() { this.strategy, this.mapping, this.synchronizeAutomatically, + this.synchronizeGroups, this.createdAt, this.updatedAt, this.lastSynchronizationAt, @@ -260,6 +271,10 @@ public interface _FinalStage { _FinalStage addAllMapping(List mapping); + _FinalStage synchronizeGroups(Optional synchronizeGroups); + + _FinalStage synchronizeGroups(String synchronizeGroups); + /** *

The timestamp at which the connection was last synchronized

*/ @@ -309,6 +324,8 @@ public static final class Builder private Optional lastSynchronizationAt = Optional.empty(); + private Optional synchronizeGroups = Optional.empty(); + private List mapping = new ArrayList<>(); @JsonAnySetter @@ -323,6 +340,7 @@ public Builder from(GetDirectoryProvisioningResponseContent other) { strategy(other.getStrategy()); mapping(other.getMapping()); synchronizeAutomatically(other.getSynchronizeAutomatically()); + synchronizeGroups(other.getSynchronizeGroups()); createdAt(other.getCreatedAt()); updatedAt(other.getUpdatedAt()); lastSynchronizationAt(other.getLastSynchronizationAt()); @@ -463,6 +481,19 @@ public _FinalStage lastSynchronizationAt(Optional lastSynchroniz return this; } + @java.lang.Override + public _FinalStage synchronizeGroups(String synchronizeGroups) { + this.synchronizeGroups = Optional.ofNullable(synchronizeGroups); + return this; + } + + @java.lang.Override + @JsonSetter(value = "synchronize_groups", nulls = Nulls.SKIP) + public _FinalStage synchronizeGroups(Optional synchronizeGroups) { + this.synchronizeGroups = synchronizeGroups; + return this; + } + /** *

The mapping between Auth0 and IDP user attributes

* @return Reference to {@code this} so that method calls can be chained together. @@ -506,6 +537,7 @@ public GetDirectoryProvisioningResponseContent build() { strategy, mapping, synchronizeAutomatically, + synchronizeGroups, createdAt, updatedAt, lastSynchronizationAt, diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java index 0085556d2..a3a53d517 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java @@ -3,9 +3,7 @@ */ package com.auth0.client.mgmt.types; -import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -20,7 +18,6 @@ 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) @@ -33,12 +30,8 @@ public final class GetGroupResponseContent { private final Optional connectionId; - private final OptionalNullable organizationId; - private final String tenantName; - private final OptionalNullable description; - private final OffsetDateTime createdAt; private final OffsetDateTime updatedAt; @@ -50,9 +43,7 @@ private GetGroupResponseContent( String name, Optional externalId, Optional connectionId, - OptionalNullable organizationId, String tenantName, - OptionalNullable description, OffsetDateTime createdAt, OffsetDateTime updatedAt, Map additionalProperties) { @@ -60,9 +51,7 @@ private GetGroupResponseContent( 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; @@ -77,7 +66,7 @@ public String getId() { } /** - * @return Name of the group. Must be unique within its scope (connection, organization, or tenant). Must contain between 1 and 128 printable ASCII characters. + * @return Name of the group. Must be unique within its connection. Must contain between 1 and 128 printable ASCII characters. */ @JsonProperty("name") public String getName() { @@ -100,18 +89,6 @@ 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. */ @@ -120,15 +97,6 @@ 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. */ @@ -145,18 +113,6 @@ 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; @@ -173,9 +129,7 @@ private boolean equalTo(GetGroupResponseContent other) { && 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); } @@ -187,9 +141,7 @@ public int hashCode() { this.name, this.externalId, this.connectionId, - this.organizationId, this.tenantName, - this.description, this.createdAt, this.updatedAt); } @@ -214,7 +166,7 @@ public interface IdStage { 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.

+ *

Name of the group. Must be unique within its connection. Must contain between 1 and 128 printable ASCII characters.

*/ TenantNameStage name(@NotNull String name); } @@ -260,25 +212,6 @@ public interface _FinalStage { _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) @@ -294,10 +227,6 @@ public static final class Builder private OffsetDateTime updatedAt; - private OptionalNullable description = OptionalNullable.absent(); - - private OptionalNullable organizationId = OptionalNullable.absent(); - private Optional connectionId = Optional.empty(); private Optional externalId = Optional.empty(); @@ -313,9 +242,7 @@ public Builder from(GetGroupResponseContent other) { 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; @@ -334,8 +261,8 @@ public NameStage id(@NotNull String id) { } /** - *

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.

+ *

Name of the group. Must be unique within its connection. Must contain between 1 and 128 printable ASCII characters.

+ *

Name of the group. Must be unique within its connection. Must contain between 1 and 128 printable ASCII characters.

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -381,91 +308,6 @@ public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { 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. @@ -509,16 +351,7 @@ public _FinalStage externalId(Optional externalId) { @java.lang.Override public GetGroupResponseContent build() { return new GetGroupResponseContent( - id, - name, - externalId, - connectionId, - organizationId, - tenantName, - description, - createdAt, - updatedAt, - additionalProperties); + id, name, externalId, connectionId, tenantName, createdAt, updatedAt, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokensPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokensPaginatedResponseContent.java new file mode 100644 index 000000000..d80c4819e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokensPaginatedResponseContent.java @@ -0,0 +1,138 @@ +/** + * 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; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = GetRefreshTokensPaginatedResponseContent.Builder.class) +public final class GetRefreshTokensPaginatedResponseContent { + private final Optional> refreshTokens; + + private final Optional next; + + private final Map additionalProperties; + + private GetRefreshTokensPaginatedResponseContent( + Optional> refreshTokens, + Optional next, + Map additionalProperties) { + this.refreshTokens = refreshTokens; + this.next = next; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("refresh_tokens") + public Optional> getRefreshTokens() { + return refreshTokens; + } + + /** + * @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 GetRefreshTokensPaginatedResponseContent + && equalTo((GetRefreshTokensPaginatedResponseContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(GetRefreshTokensPaginatedResponseContent other) { + return refreshTokens.equals(other.refreshTokens) && next.equals(other.next); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.refreshTokens, 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 Optional> refreshTokens = Optional.empty(); + + private Optional next = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(GetRefreshTokensPaginatedResponseContent other) { + refreshTokens(other.getRefreshTokens()); + next(other.getNext()); + return this; + } + + @JsonSetter(value = "refresh_tokens", nulls = Nulls.SKIP) + public Builder refreshTokens(Optional> refreshTokens) { + this.refreshTokens = refreshTokens; + return this; + } + + public Builder refreshTokens(List refreshTokens) { + this.refreshTokens = Optional.ofNullable(refreshTokens); + 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 GetRefreshTokensPaginatedResponseContent build() { + return new GetRefreshTokensPaginatedResponseContent(refreshTokens, next, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokensRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokensRequestParameters.java new file mode 100644 index 000000000..eae2ea7ab --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokensRequestParameters.java @@ -0,0 +1,563 @@ +/** + * 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.NotNull; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = GetRefreshTokensRequestParameters.Builder.class) +public final class GetRefreshTokensRequestParameters { + private final String userId; + + private final OptionalNullable clientId; + + private final OptionalNullable from; + + private final OptionalNullable take; + + private final OptionalNullable fields; + + private final OptionalNullable includeFields; + + private final Map additionalProperties; + + private GetRefreshTokensRequestParameters( + String userId, + OptionalNullable clientId, + OptionalNullable from, + OptionalNullable take, + OptionalNullable fields, + OptionalNullable includeFields, + Map additionalProperties) { + this.userId = userId; + this.clientId = clientId; + this.from = from; + this.take = take; + this.fields = fields; + this.includeFields = includeFields; + this.additionalProperties = additionalProperties; + } + + /** + * @return ID of the user whose refresh tokens to retrieve. Required. + */ + @JsonProperty("user_id") + public String getUserId() { + return userId; + } + + /** + * @return Filter results by client ID. Only valid when user_id is provided. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") + public OptionalNullable getClientId() { + if (clientId == null) { + return OptionalNullable.absent(); + } + return clientId; + } + + /** + * @return An opaque cursor from which to start the selection (exclusive). Expires after 24 hours. Obtained from the next property of a previous response. + */ + @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; + } + + /** + * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + 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; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("client_id") + private OptionalNullable _getClientId() { + return clientId; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("from") + private OptionalNullable _getFrom() { + return from; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("fields") + private OptionalNullable _getFields() { + return fields; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("include_fields") + private OptionalNullable _getIncludeFields() { + return includeFields; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof GetRefreshTokensRequestParameters && equalTo((GetRefreshTokensRequestParameters) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(GetRefreshTokensRequestParameters other) { + return userId.equals(other.userId) + && clientId.equals(other.clientId) + && from.equals(other.from) + && take.equals(other.take) + && fields.equals(other.fields) + && includeFields.equals(other.includeFields); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.userId, this.clientId, this.from, this.take, this.fields, this.includeFields); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static UserIdStage builder() { + return new Builder(); + } + + public interface UserIdStage { + /** + *

ID of the user whose refresh tokens to retrieve. Required.

+ */ + _FinalStage userId(@NotNull String userId); + + Builder from(GetRefreshTokensRequestParameters other); + } + + public interface _FinalStage { + GetRefreshTokensRequestParameters build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Filter results by client ID. Only valid when user_id is provided.

+ */ + _FinalStage clientId(@Nullable OptionalNullable clientId); + + _FinalStage clientId(String clientId); + + _FinalStage clientId(Optional clientId); + + _FinalStage clientId(com.auth0.client.mgmt.core.Nullable clientId); + + /** + *

An opaque cursor from which to start the selection (exclusive). Expires after 24 hours. Obtained from the next property of a previous response.

+ */ + _FinalStage from(@Nullable OptionalNullable from); + + _FinalStage from(String from); + + _FinalStage from(Optional from); + + _FinalStage from(com.auth0.client.mgmt.core.Nullable from); + + /** + *

Number of results per page. Defaults to 50.

+ */ + _FinalStage take(OptionalNullable take); + + _FinalStage take(Integer take); + + _FinalStage take(Optional take); + + _FinalStage take(com.auth0.client.mgmt.core.Nullable take); + + /** + *

Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.

+ */ + _FinalStage fields(@Nullable OptionalNullable fields); + + _FinalStage fields(String fields); + + _FinalStage fields(Optional fields); + + _FinalStage fields(com.auth0.client.mgmt.core.Nullable fields); + + /** + *

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

+ */ + _FinalStage includeFields(@Nullable OptionalNullable includeFields); + + _FinalStage includeFields(Boolean includeFields); + + _FinalStage includeFields(Optional includeFields); + + _FinalStage includeFields(com.auth0.client.mgmt.core.Nullable includeFields); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements UserIdStage, _FinalStage { + private String userId; + + private OptionalNullable includeFields = OptionalNullable.absent(); + + private OptionalNullable fields = OptionalNullable.absent(); + + private OptionalNullable take = OptionalNullable.absent(); + + private OptionalNullable from = OptionalNullable.absent(); + + private OptionalNullable clientId = OptionalNullable.absent(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(GetRefreshTokensRequestParameters other) { + userId(other.getUserId()); + clientId(other.getClientId()); + from(other.getFrom()); + take(other.getTake()); + fields(other.getFields()); + includeFields(other.getIncludeFields()); + return this; + } + + /** + *

ID of the user whose refresh tokens to retrieve. Required.

+ *

ID of the user whose refresh tokens to retrieve. Required.

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

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

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage 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; + } + + /** + *

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

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

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

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

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

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

Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage 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; + } + + /** + *

Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.

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

Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.

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

Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.

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

Number of results per page. Defaults to 50.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage 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; + } + + /** + *

Number of results per page. Defaults to 50.

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

Number of results per page. Defaults to 50.

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

Number of results per page. Defaults to 50.

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

An opaque cursor from which to start the selection (exclusive). Expires after 24 hours. Obtained from the next property of a previous response.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage 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; + } + + /** + *

An opaque cursor from which to start the selection (exclusive). Expires after 24 hours. Obtained from the next property of a previous response.

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

An opaque cursor from which to start the selection (exclusive). Expires after 24 hours. Obtained from the next property of a previous response.

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

An opaque cursor from which to start the selection (exclusive). Expires after 24 hours. Obtained from the next property of a previous response.

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

Filter results by client ID. Only valid when user_id is provided.

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

Filter results by client ID. Only valid when user_id is provided.

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

Filter results by client ID. Only valid when user_id is provided.

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

Filter results by client ID. Only valid when user_id is provided.

+ */ + @java.lang.Override + @JsonSetter(value = "client_id", nulls = Nulls.SKIP) + public _FinalStage clientId(@Nullable OptionalNullable clientId) { + this.clientId = clientId; + return this; + } + + @java.lang.Override + public GetRefreshTokensRequestParameters build() { + return new GetRefreshTokensRequestParameters( + userId, clientId, from, take, fields, includeFields, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/GetResourceServerResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetResourceServerResponseContent.java index 0b61e9a94..15ff91aa4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetResourceServerResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetResourceServerResponseContent.java @@ -40,6 +40,8 @@ public final class GetResourceServerResponseContent { private final Optional allowOfflineAccess; + private final Optional allowOnlineAccess; + private final Optional skipConsentForVerifiableFirstPartyClients; private final Optional tokenLifetime; @@ -54,7 +56,7 @@ public final class GetResourceServerResponseContent { private final OptionalNullable consentPolicy; - private final Optional> authorizationDetails; + private final OptionalNullable> authorizationDetails; private final OptionalNullable proofOfPossession; @@ -73,6 +75,7 @@ private GetResourceServerResponseContent( Optional signingAlg, Optional signingSecret, Optional allowOfflineAccess, + Optional allowOnlineAccess, Optional skipConsentForVerifiableFirstPartyClients, Optional tokenLifetime, Optional tokenLifetimeForWeb, @@ -80,7 +83,7 @@ private GetResourceServerResponseContent( Optional tokenDialect, OptionalNullable tokenEncryption, OptionalNullable consentPolicy, - Optional> authorizationDetails, + OptionalNullable> authorizationDetails, OptionalNullable proofOfPossession, Optional subjectTypeAuthorization, Optional clientId, @@ -93,6 +96,7 @@ private GetResourceServerResponseContent( this.signingAlg = signingAlg; this.signingSecret = signingSecret; this.allowOfflineAccess = allowOfflineAccess; + this.allowOnlineAccess = allowOnlineAccess; this.skipConsentForVerifiableFirstPartyClients = skipConsentForVerifiableFirstPartyClients; this.tokenLifetime = tokenLifetime; this.tokenLifetimeForWeb = tokenLifetimeForWeb; @@ -168,6 +172,14 @@ public Optional getAllowOfflineAccess() { return allowOfflineAccess; } + /** + * @return Whether Online Refresh Tokens can be issued for this API (true) or not (false). + */ + @JsonProperty("allow_online_access") + public Optional getAllowOnlineAccess() { + return allowOnlineAccess; + } + /** * @return Whether to skip user consent for applications flagged as first party (true) or not (false). */ @@ -223,8 +235,12 @@ public OptionalNullable getConsentPolicy() { return consentPolicy; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("authorization_details") - public Optional> getAuthorizationDetails() { + public OptionalNullable> getAuthorizationDetails() { + if (authorizationDetails == null) { + return OptionalNullable.absent(); + } return authorizationDetails; } @@ -262,6 +278,12 @@ private OptionalNullable _getConsentPolicy() { return consentPolicy; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("authorization_details") + private OptionalNullable> _getAuthorizationDetails() { + return authorizationDetails; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("proof_of_possession") private OptionalNullable _getProofOfPossession() { @@ -288,6 +310,7 @@ private boolean equalTo(GetResourceServerResponseContent other) { && signingAlg.equals(other.signingAlg) && signingSecret.equals(other.signingSecret) && allowOfflineAccess.equals(other.allowOfflineAccess) + && allowOnlineAccess.equals(other.allowOnlineAccess) && skipConsentForVerifiableFirstPartyClients.equals(other.skipConsentForVerifiableFirstPartyClients) && tokenLifetime.equals(other.tokenLifetime) && tokenLifetimeForWeb.equals(other.tokenLifetimeForWeb) @@ -312,6 +335,7 @@ public int hashCode() { this.signingAlg, this.signingSecret, this.allowOfflineAccess, + this.allowOnlineAccess, this.skipConsentForVerifiableFirstPartyClients, this.tokenLifetime, this.tokenLifetimeForWeb, @@ -352,6 +376,8 @@ public static final class Builder { private Optional allowOfflineAccess = Optional.empty(); + private Optional allowOnlineAccess = Optional.empty(); + private Optional skipConsentForVerifiableFirstPartyClients = Optional.empty(); private Optional tokenLifetime = Optional.empty(); @@ -366,7 +392,7 @@ public static final class Builder { private OptionalNullable consentPolicy = OptionalNullable.absent(); - private Optional> authorizationDetails = Optional.empty(); + private OptionalNullable> authorizationDetails = OptionalNullable.absent(); private OptionalNullable proofOfPossession = OptionalNullable.absent(); @@ -388,6 +414,7 @@ public Builder from(GetResourceServerResponseContent other) { signingAlg(other.getSigningAlg()); signingSecret(other.getSigningSecret()); allowOfflineAccess(other.getAllowOfflineAccess()); + allowOnlineAccess(other.getAllowOnlineAccess()); skipConsentForVerifiableFirstPartyClients(other.getSkipConsentForVerifiableFirstPartyClients()); tokenLifetime(other.getTokenLifetime()); tokenLifetimeForWeb(other.getTokenLifetimeForWeb()); @@ -511,6 +538,20 @@ public Builder allowOfflineAccess(Boolean allowOfflineAccess) { return this; } + /** + *

Whether Online Refresh Tokens can be issued for this API (true) or not (false).

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

Whether to skip user consent for applications flagged as first party (true) or not (false).

*/ @@ -645,13 +686,33 @@ public Builder consentPolicy( } @JsonSetter(value = "authorization_details", nulls = Nulls.SKIP) - public Builder authorizationDetails(Optional> authorizationDetails) { + public Builder authorizationDetails(@Nullable OptionalNullable> authorizationDetails) { this.authorizationDetails = authorizationDetails; return this; } public Builder authorizationDetails(List authorizationDetails) { - this.authorizationDetails = Optional.ofNullable(authorizationDetails); + this.authorizationDetails = OptionalNullable.of(authorizationDetails); + return this; + } + + public Builder authorizationDetails(Optional> authorizationDetails) { + if (authorizationDetails.isPresent()) { + this.authorizationDetails = OptionalNullable.of(authorizationDetails.get()); + } else { + this.authorizationDetails = OptionalNullable.absent(); + } + return this; + } + + public Builder authorizationDetails(com.auth0.client.mgmt.core.Nullable> authorizationDetails) { + if (authorizationDetails.isNull()) { + this.authorizationDetails = OptionalNullable.ofNull(); + } else if (authorizationDetails.isEmpty()) { + this.authorizationDetails = OptionalNullable.absent(); + } else { + this.authorizationDetails = OptionalNullable.of(authorizationDetails.get()); + } return this; } @@ -724,6 +785,7 @@ public GetResourceServerResponseContent build() { signingAlg, signingSecret, allowOfflineAccess, + allowOnlineAccess, skipConsentForVerifiableFirstPartyClients, tokenLifetime, tokenLifetimeForWeb, diff --git a/src/main/java/com/auth0/client/mgmt/types/GetTenantSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetTenantSettingsResponseContent.java index da70b1f82..f606c1dc2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetTenantSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetTenantSettingsResponseContent.java @@ -78,7 +78,7 @@ public final class GetTenantSettingsResponseContent { private final Optional customizeMfaInPostloginAction; - private final Optional> acrValuesSupported; + private final OptionalNullable> acrValuesSupported; private final OptionalNullable mtls; @@ -124,7 +124,7 @@ private GetTenantSettingsResponseContent( Optional oidcLogout, Optional allowOrganizationNameInAuthenticationApi, Optional customizeMfaInPostloginAction, - Optional> acrValuesSupported, + OptionalNullable> acrValuesSupported, OptionalNullable mtls, Optional pushedAuthorizationRequestsSupported, OptionalNullable authorizationResponseIssParameterSupported, @@ -391,8 +391,12 @@ public Optional getCustomizeMfaInPostloginAction() { /** * @return Supported ACR values */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("acr_values_supported") - public Optional> getAcrValuesSupported() { + public OptionalNullable> getAcrValuesSupported() { + if (acrValuesSupported == null) { + return OptionalNullable.absent(); + } return acrValuesSupported; } @@ -502,6 +506,12 @@ private OptionalNullable _getSessions() { return sessions; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("acr_values_supported") + private OptionalNullable> _getAcrValuesSupported() { + return acrValuesSupported; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("mtls") private OptionalNullable _getMtls() { @@ -675,7 +685,7 @@ public static final class Builder { private Optional customizeMfaInPostloginAction = Optional.empty(); - private Optional> acrValuesSupported = Optional.empty(); + private OptionalNullable> acrValuesSupported = OptionalNullable.absent(); private OptionalNullable mtls = OptionalNullable.absent(); @@ -1233,13 +1243,33 @@ public Builder customizeMfaInPostloginAction(Boolean customizeMfaInPostloginActi *

Supported ACR values

*/ @JsonSetter(value = "acr_values_supported", nulls = Nulls.SKIP) - public Builder acrValuesSupported(Optional> acrValuesSupported) { + public Builder acrValuesSupported(@Nullable OptionalNullable> acrValuesSupported) { this.acrValuesSupported = acrValuesSupported; return this; } public Builder acrValuesSupported(List acrValuesSupported) { - this.acrValuesSupported = Optional.ofNullable(acrValuesSupported); + this.acrValuesSupported = OptionalNullable.of(acrValuesSupported); + return this; + } + + public Builder acrValuesSupported(Optional> acrValuesSupported) { + if (acrValuesSupported.isPresent()) { + this.acrValuesSupported = OptionalNullable.of(acrValuesSupported.get()); + } else { + this.acrValuesSupported = OptionalNullable.absent(); + } + return this; + } + + public Builder acrValuesSupported(com.auth0.client.mgmt.core.Nullable> acrValuesSupported) { + if (acrValuesSupported.isNull()) { + this.acrValuesSupported = OptionalNullable.ofNull(); + } else if (acrValuesSupported.isEmpty()) { + this.acrValuesSupported = OptionalNullable.absent(); + } else { + this.acrValuesSupported = OptionalNullable.of(acrValuesSupported.get()); + } return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/Group.java b/src/main/java/com/auth0/client/mgmt/types/Group.java index ccaf8c3ce..d4f16ff11 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Group.java +++ b/src/main/java/com/auth0/client/mgmt/types/Group.java @@ -3,9 +3,7 @@ */ package com.auth0.client.mgmt.types; -import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -19,7 +17,6 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.Nullable; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Group.Builder.class) @@ -32,12 +29,8 @@ public final class Group implements IGroup { private final Optional connectionId; - private final OptionalNullable organizationId; - private final Optional tenantName; - private final OptionalNullable description; - private final Optional createdAt; private final Optional updatedAt; @@ -49,9 +42,7 @@ private Group( Optional name, Optional externalId, Optional connectionId, - OptionalNullable organizationId, Optional tenantName, - OptionalNullable description, Optional createdAt, Optional updatedAt, Map additionalProperties) { @@ -59,9 +50,7 @@ private Group( 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; @@ -77,7 +66,7 @@ public Optional getId() { } /** - * @return Name of the group. Must be unique within its scope (connection, organization, or tenant). Must contain between 1 and 128 printable ASCII characters. + * @return Name of the group. Must be unique within its connection. Must contain between 1 and 128 printable ASCII characters. */ @JsonProperty("name") @java.lang.Override @@ -103,19 +92,6 @@ 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") - @java.lang.Override - public OptionalNullable getOrganizationId() { - if (organizationId == null) { - return OptionalNullable.absent(); - } - return organizationId; - } - /** * @return Identifier for the tenant this group belongs to. */ @@ -125,16 +101,6 @@ public Optional getTenantName() { return tenantName; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("description") - @java.lang.Override - public OptionalNullable getDescription() { - if (description == null) { - return OptionalNullable.absent(); - } - return description; - } - /** * @return Timestamp of when the group was created. */ @@ -153,18 +119,6 @@ public Optional 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; @@ -181,9 +135,7 @@ private boolean equalTo(Group other) { && 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); } @@ -195,9 +147,7 @@ public int hashCode() { this.name, this.externalId, this.connectionId, - this.organizationId, this.tenantName, - this.description, this.createdAt, this.updatedAt); } @@ -221,12 +171,8 @@ public static final class Builder { private Optional connectionId = Optional.empty(); - private OptionalNullable organizationId = OptionalNullable.absent(); - private Optional tenantName = Optional.empty(); - private OptionalNullable description = OptionalNullable.absent(); - private Optional createdAt = Optional.empty(); private Optional updatedAt = Optional.empty(); @@ -241,9 +187,7 @@ public Builder from(Group other) { 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; @@ -264,7 +208,7 @@ public Builder id(String id) { } /** - *

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 connection. Must contain between 1 and 128 printable ASCII characters.

*/ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { @@ -305,40 +249,6 @@ public Builder connectionId(String connectionId) { return this; } - /** - *

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

- */ - @JsonSetter(value = "organization_id", nulls = Nulls.SKIP) - public Builder organizationId(@Nullable OptionalNullable organizationId) { - this.organizationId = organizationId; - return this; - } - - public Builder organizationId(String organizationId) { - this.organizationId = OptionalNullable.of(organizationId); - return this; - } - - public Builder organizationId(Optional organizationId) { - if (organizationId.isPresent()) { - this.organizationId = OptionalNullable.of(organizationId.get()); - } else { - this.organizationId = OptionalNullable.absent(); - } - return this; - } - - public Builder 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 tenant this group belongs to.

*/ @@ -353,37 +263,6 @@ public Builder tenantName(String tenantName) { return this; } - @JsonSetter(value = "description", nulls = Nulls.SKIP) - public Builder description(@Nullable OptionalNullable description) { - this.description = description; - return this; - } - - public Builder description(String description) { - this.description = OptionalNullable.of(description); - return this; - } - - public Builder description(Optional description) { - if (description.isPresent()) { - this.description = OptionalNullable.of(description.get()); - } else { - this.description = OptionalNullable.absent(); - } - return this; - } - - public Builder 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; - } - /** *

Timestamp of when the group was created.

*/ @@ -414,16 +293,7 @@ public Builder updatedAt(OffsetDateTime updatedAt) { public Group build() { return new Group( - id, - name, - externalId, - connectionId, - organizationId, - tenantName, - description, - createdAt, - updatedAt, - additionalProperties); + id, name, externalId, connectionId, tenantName, createdAt, updatedAt, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java b/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java index 81697eb4f..efcaeaf8d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/IConnectionOptionsCommonOidc.java @@ -19,8 +19,6 @@ public interface IConnectionOptionsCommonOidc { Optional> getDomainAliases(); - Optional getDpopSigningAlg(); - OptionalNullable getFederatedConnectionsAccessTokens(); Optional getIconUrl(); diff --git a/src/main/java/com/auth0/client/mgmt/types/IConnectionResponseCommon.java b/src/main/java/com/auth0/client/mgmt/types/IConnectionResponseCommon.java index e5676e6fa..841aa2ae5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IConnectionResponseCommon.java +++ b/src/main/java/com/auth0/client/mgmt/types/IConnectionResponseCommon.java @@ -7,7 +7,7 @@ import java.util.Optional; public interface IConnectionResponseCommon extends ICreateConnectionCommon { - Optional getId(); + String getId(); Optional> getRealms(); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ICreateConnectionCommon.java b/src/main/java/com/auth0/client/mgmt/types/ICreateConnectionCommon.java index 4bc587b14..084ebe52c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ICreateConnectionCommon.java +++ b/src/main/java/com/auth0/client/mgmt/types/ICreateConnectionCommon.java @@ -3,8 +3,19 @@ */ 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 ICreateConnectionCommon extends IConnectionCommon { - Optional getName(); +public interface ICreateConnectionCommon { + String getName(); + + Optional> getEnabledClients(); + + Optional getDisplayName(); + + Optional getIsDomainConnection(); + + Optional>> getMetadata(); } diff --git a/src/main/java/com/auth0/client/mgmt/types/IGroup.java b/src/main/java/com/auth0/client/mgmt/types/IGroup.java index d73bc81f0..e05c2efd7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IGroup.java +++ b/src/main/java/com/auth0/client/mgmt/types/IGroup.java @@ -3,7 +3,6 @@ */ package com.auth0.client.mgmt.types; -import com.auth0.client.mgmt.core.OptionalNullable; import java.time.OffsetDateTime; import java.util.Optional; @@ -16,12 +15,8 @@ public interface IGroup { Optional getConnectionId(); - OptionalNullable getOrganizationId(); - Optional getTenantName(); - OptionalNullable getDescription(); - Optional getCreatedAt(); Optional getUpdatedAt(); diff --git a/src/main/java/com/auth0/client/mgmt/types/IdentityProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/IdentityProviderEnum.java index 38a726017..b0f517830 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IdentityProviderEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/IdentityProviderEnum.java @@ -40,8 +40,6 @@ public final class IdentityProviderEnum { public static final IdentityProviderEnum SALESFORCE_SANDBOX = new IdentityProviderEnum(Value.SALESFORCE_SANDBOX, "salesforce-sandbox"); - public static final IdentityProviderEnum MIICARD = new IdentityProviderEnum(Value.MIICARD, "miicard"); - public static final IdentityProviderEnum FACEBOOK = new IdentityProviderEnum(Value.FACEBOOK, "facebook"); public static final IdentityProviderEnum OAUTH1 = new IdentityProviderEnum(Value.OAUTH1, "oauth1"); @@ -64,8 +62,6 @@ public final class IdentityProviderEnum { public static final IdentityProviderEnum SMS = new IdentityProviderEnum(Value.SMS, "sms"); - public static final IdentityProviderEnum AOL = new IdentityProviderEnum(Value.AOL, "aol"); - public static final IdentityProviderEnum TWITTER = new IdentityProviderEnum(Value.TWITTER, "twitter"); public static final IdentityProviderEnum WINDOWSLIVE = new IdentityProviderEnum(Value.WINDOWSLIVE, "windowslive"); @@ -81,8 +77,6 @@ public final class IdentityProviderEnum { public static final IdentityProviderEnum PAYPAL_SANDBOX = new IdentityProviderEnum(Value.PAYPAL_SANDBOX, "paypal-sandbox"); - public static final IdentityProviderEnum RENREN = new IdentityProviderEnum(Value.RENREN, "renren"); - public static final IdentityProviderEnum SAMLP = new IdentityProviderEnum(Value.SAMLP, "samlp"); public static final IdentityProviderEnum DROPBOX = new IdentityProviderEnum(Value.DROPBOX, "dropbox"); @@ -99,13 +93,8 @@ public final class IdentityProviderEnum { public static final IdentityProviderEnum WAAD = new IdentityProviderEnum(Value.WAAD, "waad"); - public static final IdentityProviderEnum THECITY_SANDBOX = - new IdentityProviderEnum(Value.THECITY_SANDBOX, "thecity-sandbox"); - public static final IdentityProviderEnum OIDC = new IdentityProviderEnum(Value.OIDC, "oidc"); - public static final IdentityProviderEnum YAMMER = new IdentityProviderEnum(Value.YAMMER, "yammer"); - public static final IdentityProviderEnum EVERNOTE_SANDBOX = new IdentityProviderEnum(Value.EVERNOTE_SANDBOX, "evernote-sandbox"); @@ -138,8 +127,6 @@ public final class IdentityProviderEnum { public static final IdentityProviderEnum LINKEDIN = new IdentityProviderEnum(Value.LINKEDIN, "linkedin"); - public static final IdentityProviderEnum THECITY = new IdentityProviderEnum(Value.THECITY, "thecity"); - private final Value value; private final String string; @@ -202,8 +189,6 @@ public T visit(Visitor visitor) { return visitor.visitShopify(); case SALESFORCE_SANDBOX: return visitor.visitSalesforceSandbox(); - case MIICARD: - return visitor.visitMiicard(); case FACEBOOK: return visitor.visitFacebook(); case OAUTH1: @@ -226,8 +211,6 @@ public T visit(Visitor visitor) { return visitor.visitOffice365(); case SMS: return visitor.visitSms(); - case AOL: - return visitor.visitAol(); case TWITTER: return visitor.visitTwitter(); case WINDOWSLIVE: @@ -242,8 +225,6 @@ public T visit(Visitor visitor) { return visitor.visitBitly(); case PAYPAL_SANDBOX: return visitor.visitPaypalSandbox(); - case RENREN: - return visitor.visitRenren(); case SAMLP: return visitor.visitSamlp(); case DROPBOX: @@ -258,12 +239,8 @@ public T visit(Visitor visitor) { return visitor.visitThirtysevensignals(); case WAAD: return visitor.visitWaad(); - case THECITY_SANDBOX: - return visitor.visitThecitySandbox(); case OIDC: return visitor.visitOidc(); - case YAMMER: - return visitor.visitYammer(); case EVERNOTE_SANDBOX: return visitor.visitEvernoteSandbox(); case SALESFORCE_COMMUNITY: @@ -294,8 +271,6 @@ public T visit(Visitor visitor) { return visitor.visitPaypal(); case LINKEDIN: return visitor.visitLinkedin(); - case THECITY: - return visitor.visitThecity(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -335,8 +310,6 @@ public static IdentityProviderEnum valueOf(String value) { return SHOPIFY; case "salesforce-sandbox": return SALESFORCE_SANDBOX; - case "miicard": - return MIICARD; case "facebook": return FACEBOOK; case "oauth1": @@ -359,8 +332,6 @@ public static IdentityProviderEnum valueOf(String value) { return OFFICE365; case "sms": return SMS; - case "aol": - return AOL; case "twitter": return TWITTER; case "windowslive": @@ -375,8 +346,6 @@ public static IdentityProviderEnum valueOf(String value) { return BITLY; case "paypal-sandbox": return PAYPAL_SANDBOX; - case "renren": - return RENREN; case "samlp": return SAMLP; case "dropbox": @@ -391,12 +360,8 @@ public static IdentityProviderEnum valueOf(String value) { return THIRTYSEVENSIGNALS; case "waad": return WAAD; - case "thecity-sandbox": - return THECITY_SANDBOX; case "oidc": return OIDC; - case "yammer": - return YAMMER; case "evernote-sandbox": return EVERNOTE_SANDBOX; case "salesforce-community": @@ -427,8 +392,6 @@ public static IdentityProviderEnum valueOf(String value) { return PAYPAL; case "linkedin": return LINKEDIN; - case "thecity": - return THECITY; default: return new IdentityProviderEnum(Value.UNKNOWN, value); } @@ -447,8 +410,6 @@ public enum Value { BITBUCKET, - AOL, - AUTH0OIDC, AUTH0, @@ -493,8 +454,6 @@ public enum Value { LINKEDIN, - MIICARD, - OAUTH1, OAUTH2, @@ -513,8 +472,6 @@ public enum Value { PLANNINGCENTER, - RENREN, - SALESFORCE_COMMUNITY, SALESFORCE_SANDBOX, @@ -533,10 +490,6 @@ public enum Value { SOUNDCLOUD, - THECITY_SANDBOX, - - THECITY, - THIRTYSEVENSIGNALS, TWITTER, @@ -555,8 +508,6 @@ public enum Value { YAHOO, - YAMMER, - YANDEX, UNKNOWN @@ -575,8 +526,6 @@ public interface Visitor { T visitBitbucket(); - T visitAol(); - T visitAuth0Oidc(); T visitAuth0(); @@ -621,8 +570,6 @@ public interface Visitor { T visitLinkedin(); - T visitMiicard(); - T visitOauth1(); T visitOauth2(); @@ -641,8 +588,6 @@ public interface Visitor { T visitPlanningcenter(); - T visitRenren(); - T visitSalesforceCommunity(); T visitSalesforceSandbox(); @@ -661,10 +606,6 @@ public interface Visitor { T visitSoundcloud(); - T visitThecitySandbox(); - - T visitThecity(); - T visitThirtysevensignals(); T visitTwitter(); @@ -683,8 +624,6 @@ public interface Visitor { T visitYahoo(); - T visitYammer(); - T visitYandex(); T visitUnknown(String unknownType); diff --git a/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java index 6a1e2bc67..ded2ec00e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java @@ -23,7 +23,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListActionsRequestParameters.Builder.class) public final class ListActionsRequestParameters { - private final OptionalNullable triggerId; + private final OptionalNullable triggerId; private final OptionalNullable actionName; @@ -38,7 +38,7 @@ public final class ListActionsRequestParameters { private final Map additionalProperties; private ListActionsRequestParameters( - OptionalNullable triggerId, + OptionalNullable triggerId, OptionalNullable actionName, OptionalNullable deployed, OptionalNullable page, @@ -59,7 +59,7 @@ private ListActionsRequestParameters( */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("triggerId") - public OptionalNullable getTriggerId() { + public OptionalNullable getTriggerId() { if (triggerId == null) { return OptionalNullable.absent(); } @@ -122,7 +122,7 @@ public OptionalNullable getInstalled() { @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("triggerId") - private OptionalNullable _getTriggerId() { + private OptionalNullable _getTriggerId() { return triggerId; } @@ -180,7 +180,7 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { - private OptionalNullable triggerId = OptionalNullable.absent(); + private OptionalNullable triggerId = OptionalNullable.absent(); private OptionalNullable actionName = OptionalNullable.absent(); @@ -211,17 +211,17 @@ public Builder from(ListActionsRequestParameters other) { *

An actions extensibility point.

*/ @JsonSetter(value = "triggerId", nulls = Nulls.SKIP) - public Builder triggerId(@Nullable OptionalNullable triggerId) { + public Builder triggerId(@Nullable OptionalNullable triggerId) { this.triggerId = triggerId; return this; } - public Builder triggerId(String triggerId) { + public Builder triggerId(ActionTriggerTypeEnum triggerId) { this.triggerId = OptionalNullable.of(triggerId); return this; } - public Builder triggerId(Optional triggerId) { + public Builder triggerId(Optional triggerId) { if (triggerId.isPresent()) { this.triggerId = OptionalNullable.of(triggerId.get()); } else { @@ -230,7 +230,7 @@ public Builder triggerId(Optional triggerId) { return this; } - public Builder triggerId(com.auth0.client.mgmt.core.Nullable triggerId) { + public Builder triggerId(com.auth0.client.mgmt.core.Nullable triggerId) { if (triggerId.isNull()) { this.triggerId = OptionalNullable.ofNull(); } else if (triggerId.isEmpty()) { diff --git a/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java b/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java index c3f670065..7269f4ec0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java @@ -32,13 +32,13 @@ public final class ListAculsResponseContentItem { private final Optional renderingMode; - private final Optional> contextConfiguration; + private final OptionalNullable> contextConfiguration; private final OptionalNullable defaultHeadTagsDisabled; private final OptionalNullable usePageTemplate; - private final Optional> headTags; + private final OptionalNullable> headTags; private final OptionalNullable filters; @@ -49,10 +49,10 @@ private ListAculsResponseContentItem( Optional prompt, Optional screen, Optional renderingMode, - Optional> contextConfiguration, + OptionalNullable> contextConfiguration, OptionalNullable defaultHeadTagsDisabled, OptionalNullable usePageTemplate, - Optional> headTags, + OptionalNullable> headTags, OptionalNullable filters, Map additionalProperties) { this.tenant = tenant; @@ -99,8 +99,12 @@ public Optional getRenderingMode() { return renderingMode; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("context_configuration") - public Optional> getContextConfiguration() { + public OptionalNullable> getContextConfiguration() { + if (contextConfiguration == null) { + return OptionalNullable.absent(); + } return contextConfiguration; } @@ -131,8 +135,12 @@ public OptionalNullable getUsePageTemplate() { /** * @return An array of head tags */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("head_tags") - public Optional> getHeadTags() { + public OptionalNullable> getHeadTags() { + if (headTags == null) { + return OptionalNullable.absent(); + } return headTags; } @@ -145,6 +153,12 @@ public OptionalNullable getFilters() { return filters; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("context_configuration") + private OptionalNullable> _getContextConfiguration() { + return contextConfiguration; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("default_head_tags_disabled") private OptionalNullable _getDefaultHeadTagsDisabled() { @@ -157,6 +171,12 @@ private OptionalNullable _getUsePageTemplate() { return usePageTemplate; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("head_tags") + private OptionalNullable> _getHeadTags() { + return headTags; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("filters") private OptionalNullable _getFilters() { @@ -219,13 +239,13 @@ public static final class Builder { private Optional renderingMode = Optional.empty(); - private Optional> contextConfiguration = Optional.empty(); + private OptionalNullable> contextConfiguration = OptionalNullable.absent(); private OptionalNullable defaultHeadTagsDisabled = OptionalNullable.absent(); private OptionalNullable usePageTemplate = OptionalNullable.absent(); - private Optional> headTags = Optional.empty(); + private OptionalNullable> headTags = OptionalNullable.absent(); private OptionalNullable filters = OptionalNullable.absent(); @@ -304,13 +324,35 @@ public Builder renderingMode(AculRenderingModeEnum renderingMode) { } @JsonSetter(value = "context_configuration", nulls = Nulls.SKIP) - public Builder contextConfiguration(Optional> contextConfiguration) { + public Builder contextConfiguration( + @Nullable OptionalNullable> contextConfiguration) { this.contextConfiguration = contextConfiguration; return this; } public Builder contextConfiguration(List contextConfiguration) { - this.contextConfiguration = Optional.ofNullable(contextConfiguration); + this.contextConfiguration = OptionalNullable.of(contextConfiguration); + return this; + } + + public Builder contextConfiguration(Optional> contextConfiguration) { + if (contextConfiguration.isPresent()) { + this.contextConfiguration = OptionalNullable.of(contextConfiguration.get()); + } else { + this.contextConfiguration = OptionalNullable.absent(); + } + return this; + } + + public Builder contextConfiguration( + com.auth0.client.mgmt.core.Nullable> contextConfiguration) { + if (contextConfiguration.isNull()) { + this.contextConfiguration = OptionalNullable.ofNull(); + } else if (contextConfiguration.isEmpty()) { + this.contextConfiguration = OptionalNullable.absent(); + } else { + this.contextConfiguration = OptionalNullable.of(contextConfiguration.get()); + } return this; } @@ -386,13 +428,33 @@ public Builder usePageTemplate(com.auth0.client.mgmt.core.Nullable useP *

An array of head tags

*/ @JsonSetter(value = "head_tags", nulls = Nulls.SKIP) - public Builder headTags(Optional> headTags) { + public Builder headTags(@Nullable OptionalNullable> headTags) { this.headTags = headTags; return this; } public Builder headTags(List headTags) { - this.headTags = Optional.ofNullable(headTags); + this.headTags = OptionalNullable.of(headTags); + return this; + } + + public Builder headTags(Optional> headTags) { + if (headTags.isPresent()) { + this.headTags = OptionalNullable.of(headTags.get()); + } else { + this.headTags = OptionalNullable.absent(); + } + return this; + } + + public Builder headTags(com.auth0.client.mgmt.core.Nullable> headTags) { + if (headTags.isNull()) { + this.headTags = OptionalNullable.ofNull(); + } else if (headTags.isEmpty()) { + this.headTags = OptionalNullable.absent(); + } else { + this.headTags = OptionalNullable.of(headTags.get()); + } return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java index d9584dbde..6c4f842b2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java @@ -39,6 +39,8 @@ public final class ListClientsRequestParameters { private final OptionalNullable appType; + private final OptionalNullable externalClientId; + private final OptionalNullable q; private final Map additionalProperties; @@ -52,6 +54,7 @@ private ListClientsRequestParameters( OptionalNullable isGlobal, OptionalNullable isFirstParty, OptionalNullable appType, + OptionalNullable externalClientId, OptionalNullable q, Map additionalProperties) { this.fields = fields; @@ -62,6 +65,7 @@ private ListClientsRequestParameters( this.isGlobal = isGlobal; this.isFirstParty = isFirstParty; this.appType = appType; + this.externalClientId = externalClientId; this.q = q; this.additionalProperties = additionalProperties; } @@ -154,7 +158,19 @@ public OptionalNullable getAppType() { } /** - * @return Advanced Query in Lucene syntax.Permitted Queries:
  • client_grant.organization_id:{organization_id}
  • client_grant.allow_any_organization:true
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Requires use of the from and take paging parameters (checkpoint paginatinon)
  • Reduced rate limits apply. See Rate Limit Configurations
Note: Recent updates may not be immediately reflected in query results + * @return Optional filter by the Client ID Metadata Document URI for CIMD-registered clients. + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("external_client_id") + public OptionalNullable getExternalClientId() { + if (externalClientId == null) { + return OptionalNullable.absent(); + } + return externalClientId; + } + + /** + * @return Advanced Query in Lucene syntax.Permitted Queries:
  • client_grant.organization_id:{organization_id}
  • client_grant.allow_any_organization:true
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Requires use of the from and take paging parameters (checkpoint paginatinon)
  • Reduced rate limits apply. See Rate Limit Configurations
Note: Recent updates may not be immediately reflected in query results */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("q") @@ -195,6 +211,12 @@ private OptionalNullable _getAppType() { return appType; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("external_client_id") + private OptionalNullable _getExternalClientId() { + return externalClientId; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("q") private OptionalNullable _getQ() { @@ -221,6 +243,7 @@ private boolean equalTo(ListClientsRequestParameters other) { && isGlobal.equals(other.isGlobal) && isFirstParty.equals(other.isFirstParty) && appType.equals(other.appType) + && externalClientId.equals(other.externalClientId) && q.equals(other.q); } @@ -235,6 +258,7 @@ public int hashCode() { this.isGlobal, this.isFirstParty, this.appType, + this.externalClientId, this.q); } @@ -265,6 +289,8 @@ public static final class Builder { private OptionalNullable appType = OptionalNullable.absent(); + private OptionalNullable externalClientId = OptionalNullable.absent(); + private OptionalNullable q = OptionalNullable.absent(); @JsonAnySetter @@ -281,6 +307,7 @@ public Builder from(ListClientsRequestParameters other) { isGlobal(other.getIsGlobal()); isFirstParty(other.getIsFirstParty()); appType(other.getAppType()); + externalClientId(other.getExternalClientId()); q(other.getQ()); return this; } @@ -558,7 +585,41 @@ public Builder appType(com.auth0.client.mgmt.core.Nullable appType) { } /** - *

Advanced Query in Lucene syntax.Permitted Queries:

  • client_grant.organization_id:{organization_id}
  • client_grant.allow_any_organization:true
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Requires use of the from and take paging parameters (checkpoint paginatinon)
  • Reduced rate limits apply. See Rate Limit Configurations
Note: Recent updates may not be immediately reflected in query results

+ *

Optional filter by the Client ID Metadata Document URI for CIMD-registered clients.

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

Advanced Query in Lucene syntax.Permitted Queries:

  • client_grant.organization_id:{organization_id}
  • client_grant.allow_any_organization:true
Additional Restrictions:
  • Cannot be used in combination with other filters
  • Requires use of the from and take paging parameters (checkpoint paginatinon)
  • Reduced rate limits apply. See Rate Limit Configurations
Note: Recent updates may not be immediately reflected in query results

*/ @JsonSetter(value = "q", nulls = Nulls.SKIP) public Builder q(@Nullable OptionalNullable q) { @@ -601,6 +662,7 @@ public ListClientsRequestParameters build() { isGlobal, isFirstParty, appType, + externalClientId, q, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java index 4a49cd1d7..0d559cc37 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java @@ -47,7 +47,7 @@ private ListCustomDomainsRequestParameters( } /** - * @return Query in Lucene query string syntax. + * @return Query in Lucene query string syntax. */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("q") @@ -175,7 +175,7 @@ public Builder from(ListCustomDomainsRequestParameters other) { } /** - *

Query in Lucene query string syntax.

+ *

Query in Lucene query string syntax.

*/ @JsonSetter(value = "q", nulls = Nulls.SKIP) public Builder q(@Nullable OptionalNullable q) { diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java index 6566d5cb5..1123659f9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java @@ -146,7 +146,7 @@ public OptionalNullable getIncludeFields() { } /** - * @return Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields. + * @return Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields. */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("q") @@ -551,7 +551,7 @@ public Builder includeFields(Nullable includeFields) { } /** - *

Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields.

+ *

Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields.

*/ @JsonSetter(value = "q", nulls = Nulls.SKIP) public Builder q(@org.jetbrains.annotations.Nullable OptionalNullable q) { diff --git a/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java b/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java index 8e3ec0caf..381be950c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java +++ b/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java @@ -39,6 +39,12 @@ public final class NetworkAclMatch { private final Optional> userAgents; + private final Optional> hostnames; + + private final Optional> connectingIpv4Cidrs; + + private final Optional> connectingIpv6Cidrs; + private final Map additionalProperties; private NetworkAclMatch( @@ -51,6 +57,9 @@ private NetworkAclMatch( Optional> ja3Fingerprints, Optional> ja4Fingerprints, Optional> userAgents, + Optional> hostnames, + Optional> connectingIpv4Cidrs, + Optional> connectingIpv6Cidrs, Map additionalProperties) { this.asns = asns; this.auth0Managed = auth0Managed; @@ -61,6 +70,9 @@ private NetworkAclMatch( this.ja3Fingerprints = ja3Fingerprints; this.ja4Fingerprints = ja4Fingerprints; this.userAgents = userAgents; + this.hostnames = hostnames; + this.connectingIpv4Cidrs = connectingIpv4Cidrs; + this.connectingIpv6Cidrs = connectingIpv6Cidrs; this.additionalProperties = additionalProperties; } @@ -109,6 +121,21 @@ public Optional> getUserAgents() { return userAgents; } + @JsonProperty("hostnames") + public Optional> getHostnames() { + return hostnames; + } + + @JsonProperty("connecting_ipv4_cidrs") + public Optional> getConnectingIpv4Cidrs() { + return connectingIpv4Cidrs; + } + + @JsonProperty("connecting_ipv6_cidrs") + public Optional> getConnectingIpv6Cidrs() { + return connectingIpv6Cidrs; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -129,7 +156,10 @@ private boolean equalTo(NetworkAclMatch other) { && ipv6Cidrs.equals(other.ipv6Cidrs) && ja3Fingerprints.equals(other.ja3Fingerprints) && ja4Fingerprints.equals(other.ja4Fingerprints) - && userAgents.equals(other.userAgents); + && userAgents.equals(other.userAgents) + && hostnames.equals(other.hostnames) + && connectingIpv4Cidrs.equals(other.connectingIpv4Cidrs) + && connectingIpv6Cidrs.equals(other.connectingIpv6Cidrs); } @java.lang.Override @@ -143,7 +173,10 @@ public int hashCode() { this.ipv6Cidrs, this.ja3Fingerprints, this.ja4Fingerprints, - this.userAgents); + this.userAgents, + this.hostnames, + this.connectingIpv4Cidrs, + this.connectingIpv6Cidrs); } @java.lang.Override @@ -175,6 +208,12 @@ public static final class Builder { private Optional> userAgents = Optional.empty(); + private Optional> hostnames = Optional.empty(); + + private Optional> connectingIpv4Cidrs = Optional.empty(); + + private Optional> connectingIpv6Cidrs = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -190,6 +229,9 @@ public Builder from(NetworkAclMatch other) { ja3Fingerprints(other.getJa3Fingerprints()); ja4Fingerprints(other.getJa4Fingerprints()); userAgents(other.getUserAgents()); + hostnames(other.getHostnames()); + connectingIpv4Cidrs(other.getConnectingIpv4Cidrs()); + connectingIpv6Cidrs(other.getConnectingIpv6Cidrs()); return this; } @@ -292,6 +334,39 @@ public Builder userAgents(List userAgents) { return this; } + @JsonSetter(value = "hostnames", nulls = Nulls.SKIP) + public Builder hostnames(Optional> hostnames) { + this.hostnames = hostnames; + return this; + } + + public Builder hostnames(List hostnames) { + this.hostnames = Optional.ofNullable(hostnames); + return this; + } + + @JsonSetter(value = "connecting_ipv4_cidrs", nulls = Nulls.SKIP) + public Builder connectingIpv4Cidrs(Optional> connectingIpv4Cidrs) { + this.connectingIpv4Cidrs = connectingIpv4Cidrs; + return this; + } + + public Builder connectingIpv4Cidrs(List connectingIpv4Cidrs) { + this.connectingIpv4Cidrs = Optional.ofNullable(connectingIpv4Cidrs); + return this; + } + + @JsonSetter(value = "connecting_ipv6_cidrs", nulls = Nulls.SKIP) + public Builder connectingIpv6Cidrs(Optional> connectingIpv6Cidrs) { + this.connectingIpv6Cidrs = connectingIpv6Cidrs; + return this; + } + + public Builder connectingIpv6Cidrs(List connectingIpv6Cidrs) { + this.connectingIpv6Cidrs = Optional.ofNullable(connectingIpv6Cidrs); + return this; + } + public NetworkAclMatch build() { return new NetworkAclMatch( asns, @@ -303,6 +378,9 @@ public NetworkAclMatch build() { ja3Fingerprints, ja4Fingerprints, userAgents, + hostnames, + connectingIpv4Cidrs, + connectingIpv6Cidrs, 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 fdc2f00ea..02f55e725 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OauthScope.java +++ b/src/main/java/com/auth0/client/mgmt/types/OauthScope.java @@ -190,6 +190,8 @@ public final class OauthScope { public static final OauthScope CREATE_SSO_ACCESS_TICKETS = new OauthScope(Value.CREATE_SSO_ACCESS_TICKETS, "create:sso_access_tickets"); + public static final OauthScope DELETE_GROUPS = new OauthScope(Value.DELETE_GROUPS, "delete:groups"); + public static final OauthScope READ_SELF_SERVICE_PROFILE_CUSTOM_TEXTS = new OauthScope(Value.READ_SELF_SERVICE_PROFILE_CUSTOM_TEXTS, "read:self_service_profile_custom_texts"); @@ -760,6 +762,8 @@ public T visit(Visitor visitor) { return visitor.visitUpdateRoles(); case CREATE_SSO_ACCESS_TICKETS: return visitor.visitCreateSsoAccessTickets(); + case DELETE_GROUPS: + return visitor.visitDeleteGroups(); case READ_SELF_SERVICE_PROFILE_CUSTOM_TEXTS: return visitor.visitReadSelfServiceProfileCustomTexts(); case DELETE_SCIM_TOKEN: @@ -1207,6 +1211,8 @@ public static OauthScope valueOf(String value) { return UPDATE_ROLES; case "create:sso_access_tickets": return CREATE_SSO_ACCESS_TICKETS; + case "delete:groups": + return DELETE_GROUPS; case "read:self_service_profile_custom_texts": return READ_SELF_SERVICE_PROFILE_CUSTOM_TEXTS; case "delete:scim_token": @@ -1711,6 +1717,8 @@ public enum Value { READ_GROUPS, + DELETE_GROUPS, + CREATE_GUARDIAN_ENROLLMENT_TICKETS, READ_GUARDIAN_ENROLLMENTS, @@ -2153,6 +2161,8 @@ public interface Visitor { T visitReadGroups(); + T visitDeleteGroups(); + T visitCreateGuardianEnrollmentTickets(); T visitReadGuardianEnrollments(); diff --git a/src/main/java/com/auth0/client/mgmt/types/PasswordCharacterTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/PasswordCharacterTypeEnum.java new file mode 100644 index 000000000..6e19cafe7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/PasswordCharacterTypeEnum.java @@ -0,0 +1,106 @@ +/** + * 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 PasswordCharacterTypeEnum { + public static final PasswordCharacterTypeEnum NUMBER = new PasswordCharacterTypeEnum(Value.NUMBER, "number"); + + public static final PasswordCharacterTypeEnum LOWERCASE = + new PasswordCharacterTypeEnum(Value.LOWERCASE, "lowercase"); + + public static final PasswordCharacterTypeEnum SPECIAL = new PasswordCharacterTypeEnum(Value.SPECIAL, "special"); + + public static final PasswordCharacterTypeEnum UPPERCASE = + new PasswordCharacterTypeEnum(Value.UPPERCASE, "uppercase"); + + private final Value value; + + private final String string; + + PasswordCharacterTypeEnum(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 PasswordCharacterTypeEnum + && this.string.equals(((PasswordCharacterTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NUMBER: + return visitor.visitNumber(); + case LOWERCASE: + return visitor.visitLowercase(); + case SPECIAL: + return visitor.visitSpecial(); + case UPPERCASE: + return visitor.visitUppercase(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static PasswordCharacterTypeEnum valueOf(String value) { + switch (value) { + case "number": + return NUMBER; + case "lowercase": + return LOWERCASE; + case "special": + return SPECIAL; + case "uppercase": + return UPPERCASE; + default: + return new PasswordCharacterTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + UPPERCASE, + + LOWERCASE, + + NUMBER, + + SPECIAL, + + UNKNOWN + } + + public interface Visitor { + T visitUppercase(); + + T visitLowercase(); + + T visitNumber(); + + T visitSpecial(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/PasswordCharacterTypeRulePolicyEnum.java b/src/main/java/com/auth0/client/mgmt/types/PasswordCharacterTypeRulePolicyEnum.java new file mode 100644 index 000000000..5614158c9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/PasswordCharacterTypeRulePolicyEnum.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 PasswordCharacterTypeRulePolicyEnum { + public static final PasswordCharacterTypeRulePolicyEnum ALL = + new PasswordCharacterTypeRulePolicyEnum(Value.ALL, "all"); + + public static final PasswordCharacterTypeRulePolicyEnum THREE_OF_FOUR = + new PasswordCharacterTypeRulePolicyEnum(Value.THREE_OF_FOUR, "three_of_four"); + + private final Value value; + + private final String string; + + PasswordCharacterTypeRulePolicyEnum(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 PasswordCharacterTypeRulePolicyEnum + && this.string.equals(((PasswordCharacterTypeRulePolicyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ALL: + return visitor.visitAll(); + case THREE_OF_FOUR: + return visitor.visitThreeOfFour(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static PasswordCharacterTypeRulePolicyEnum valueOf(String value) { + switch (value) { + case "all": + return ALL; + case "three_of_four": + return THREE_OF_FOUR; + default: + return new PasswordCharacterTypeRulePolicyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ALL, + + THREE_OF_FOUR, + + UNKNOWN + } + + public interface Visitor { + T visitAll(); + + T visitThreeOfFour(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/PasswordDefaultDictionariesEnum.java similarity index 52% rename from src/main/java/com/auth0/client/mgmt/types/ConnectionDpopSigningAlgEnum.java rename to src/main/java/com/auth0/client/mgmt/types/PasswordDefaultDictionariesEnum.java index cb4e688af..bf2035fcf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionDpopSigningAlgEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/PasswordDefaultDictionariesEnum.java @@ -6,17 +6,18 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -public final class ConnectionDpopSigningAlgEnum { - public static final ConnectionDpopSigningAlgEnum ES256 = new ConnectionDpopSigningAlgEnum(Value.ES256, "ES256"); +public final class PasswordDefaultDictionariesEnum { + public static final PasswordDefaultDictionariesEnum EN10K = + new PasswordDefaultDictionariesEnum(Value.EN10K, "en_10k"); - public static final ConnectionDpopSigningAlgEnum ED25519 = - new ConnectionDpopSigningAlgEnum(Value.ED25519, "Ed25519"); + public static final PasswordDefaultDictionariesEnum EN100K = + new PasswordDefaultDictionariesEnum(Value.EN100K, "en_100k"); private final Value value; private final String string; - ConnectionDpopSigningAlgEnum(Value value, String string) { + PasswordDefaultDictionariesEnum(Value value, String string) { this.value = value; this.string = string; } @@ -34,8 +35,8 @@ public String toString() { @java.lang.Override public boolean equals(Object other) { return (this == other) - || (other instanceof ConnectionDpopSigningAlgEnum - && this.string.equals(((ConnectionDpopSigningAlgEnum) other).string)); + || (other instanceof PasswordDefaultDictionariesEnum + && this.string.equals(((PasswordDefaultDictionariesEnum) other).string)); } @java.lang.Override @@ -45,10 +46,10 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { - case ES256: - return visitor.visitEs256(); - case ED25519: - return visitor.visitEd25519(); + case EN10K: + return visitor.visitEn10K(); + case EN100K: + return visitor.visitEn100K(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -56,29 +57,29 @@ public T visit(Visitor visitor) { } @JsonCreator(mode = JsonCreator.Mode.DELEGATING) - public static ConnectionDpopSigningAlgEnum valueOf(String value) { + public static PasswordDefaultDictionariesEnum valueOf(String value) { switch (value) { - case "ES256": - return ES256; - case "Ed25519": - return ED25519; + case "en_10k": + return EN10K; + case "en_100k": + return EN100K; default: - return new ConnectionDpopSigningAlgEnum(Value.UNKNOWN, value); + return new PasswordDefaultDictionariesEnum(Value.UNKNOWN, value); } } public enum Value { - ES256, + EN10K, - ED25519, + EN100K, UNKNOWN } public interface Visitor { - T visitEs256(); + T visitEn10K(); - T visitEd25519(); + T visitEn100K(); T visitUnknown(String unknownType); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenrenStrategy.java b/src/main/java/com/auth0/client/mgmt/types/PasswordIdenticalCharactersPolicyEnum.java similarity index 51% rename from src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenrenStrategy.java rename to src/main/java/com/auth0/client/mgmt/types/PasswordIdenticalCharactersPolicyEnum.java index 619cf9962..9ccee517e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenrenStrategy.java +++ b/src/main/java/com/auth0/client/mgmt/types/PasswordIdenticalCharactersPolicyEnum.java @@ -6,15 +6,18 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -public final class ConnectionResponseContentRenrenStrategy { - public static final ConnectionResponseContentRenrenStrategy RENREN = - new ConnectionResponseContentRenrenStrategy(Value.RENREN, "renren"); +public final class PasswordIdenticalCharactersPolicyEnum { + public static final PasswordIdenticalCharactersPolicyEnum ALLOW = + new PasswordIdenticalCharactersPolicyEnum(Value.ALLOW, "allow"); + + public static final PasswordIdenticalCharactersPolicyEnum BLOCK = + new PasswordIdenticalCharactersPolicyEnum(Value.BLOCK, "block"); private final Value value; private final String string; - ConnectionResponseContentRenrenStrategy(Value value, String string) { + PasswordIdenticalCharactersPolicyEnum(Value value, String string) { this.value = value; this.string = string; } @@ -32,8 +35,8 @@ public String toString() { @java.lang.Override public boolean equals(Object other) { return (this == other) - || (other instanceof ConnectionResponseContentRenrenStrategy - && this.string.equals(((ConnectionResponseContentRenrenStrategy) other).string)); + || (other instanceof PasswordIdenticalCharactersPolicyEnum + && this.string.equals(((PasswordIdenticalCharactersPolicyEnum) other).string)); } @java.lang.Override @@ -43,8 +46,10 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { - case RENREN: - return visitor.visitRenren(); + case ALLOW: + return visitor.visitAllow(); + case BLOCK: + return visitor.visitBlock(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -52,23 +57,29 @@ public T visit(Visitor visitor) { } @JsonCreator(mode = JsonCreator.Mode.DELEGATING) - public static ConnectionResponseContentRenrenStrategy valueOf(String value) { + public static PasswordIdenticalCharactersPolicyEnum valueOf(String value) { switch (value) { - case "renren": - return RENREN; + case "allow": + return ALLOW; + case "block": + return BLOCK; default: - return new ConnectionResponseContentRenrenStrategy(Value.UNKNOWN, value); + return new PasswordIdenticalCharactersPolicyEnum(Value.UNKNOWN, value); } } public enum Value { - RENREN, + ALLOW, + + BLOCK, UNKNOWN } public interface Visitor { - T visitRenren(); + T visitAllow(); + + T visitBlock(); T visitUnknown(String unknownType); } diff --git a/src/main/java/com/auth0/client/mgmt/types/PasswordMaxLengthExceededPolicyEnum.java b/src/main/java/com/auth0/client/mgmt/types/PasswordMaxLengthExceededPolicyEnum.java new file mode 100644 index 000000000..d2436626b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/PasswordMaxLengthExceededPolicyEnum.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 PasswordMaxLengthExceededPolicyEnum { + public static final PasswordMaxLengthExceededPolicyEnum TRUNCATE = + new PasswordMaxLengthExceededPolicyEnum(Value.TRUNCATE, "truncate"); + + public static final PasswordMaxLengthExceededPolicyEnum ERROR = + new PasswordMaxLengthExceededPolicyEnum(Value.ERROR, "error"); + + private final Value value; + + private final String string; + + PasswordMaxLengthExceededPolicyEnum(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 PasswordMaxLengthExceededPolicyEnum + && this.string.equals(((PasswordMaxLengthExceededPolicyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case TRUNCATE: + return visitor.visitTruncate(); + case ERROR: + return visitor.visitError(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static PasswordMaxLengthExceededPolicyEnum valueOf(String value) { + switch (value) { + case "truncate": + return TRUNCATE; + case "error": + return ERROR; + default: + return new PasswordMaxLengthExceededPolicyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + TRUNCATE, + + ERROR, + + UNKNOWN + } + + public interface Visitor { + T visitTruncate(); + + T visitError(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/PasswordSequentialCharactersPolicyEnum.java b/src/main/java/com/auth0/client/mgmt/types/PasswordSequentialCharactersPolicyEnum.java new file mode 100644 index 000000000..f01fd573d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/PasswordSequentialCharactersPolicyEnum.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 PasswordSequentialCharactersPolicyEnum { + public static final PasswordSequentialCharactersPolicyEnum ALLOW = + new PasswordSequentialCharactersPolicyEnum(Value.ALLOW, "allow"); + + public static final PasswordSequentialCharactersPolicyEnum BLOCK = + new PasswordSequentialCharactersPolicyEnum(Value.BLOCK, "block"); + + private final Value value; + + private final String string; + + PasswordSequentialCharactersPolicyEnum(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 PasswordSequentialCharactersPolicyEnum + && this.string.equals(((PasswordSequentialCharactersPolicyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ALLOW: + return visitor.visitAllow(); + case BLOCK: + return visitor.visitBlock(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static PasswordSequentialCharactersPolicyEnum valueOf(String value) { + switch (value) { + case "allow": + return ALLOW; + case "block": + return BLOCK; + default: + return new PasswordSequentialCharactersPolicyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ALLOW, + + BLOCK, + + UNKNOWN + } + + public interface Visitor { + T visitAllow(); + + T visitBlock(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/PreviewCimdMetadataRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/PreviewCimdMetadataRequestContent.java new file mode 100644 index 000000000..01696b956 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/PreviewCimdMetadataRequestContent.java @@ -0,0 +1,129 @@ +/** + * 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.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = PreviewCimdMetadataRequestContent.Builder.class) +public final class PreviewCimdMetadataRequestContent { + private final String externalClientId; + + private final Map additionalProperties; + + private PreviewCimdMetadataRequestContent(String externalClientId, Map additionalProperties) { + this.externalClientId = externalClientId; + this.additionalProperties = additionalProperties; + } + + /** + * @return URL to the Client ID Metadata Document + */ + @JsonProperty("external_client_id") + public String getExternalClientId() { + return externalClientId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PreviewCimdMetadataRequestContent && equalTo((PreviewCimdMetadataRequestContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(PreviewCimdMetadataRequestContent other) { + return externalClientId.equals(other.externalClientId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.externalClientId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ExternalClientIdStage builder() { + return new Builder(); + } + + public interface ExternalClientIdStage { + /** + *

URL to the Client ID Metadata Document

+ */ + _FinalStage externalClientId(@NotNull String externalClientId); + + Builder from(PreviewCimdMetadataRequestContent other); + } + + public interface _FinalStage { + PreviewCimdMetadataRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ExternalClientIdStage, _FinalStage { + private String externalClientId; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(PreviewCimdMetadataRequestContent other) { + externalClientId(other.getExternalClientId()); + return this; + } + + /** + *

URL to the Client ID Metadata Document

+ *

URL to the Client ID Metadata Document

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("external_client_id") + public _FinalStage externalClientId(@NotNull String externalClientId) { + this.externalClientId = Objects.requireNonNull(externalClientId, "externalClientId must not be null"); + return this; + } + + @java.lang.Override + public PreviewCimdMetadataRequestContent build() { + return new PreviewCimdMetadataRequestContent(externalClientId, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/PreviewCimdMetadataResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/PreviewCimdMetadataResponseContent.java new file mode 100644 index 000000000..b01d4b91e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/PreviewCimdMetadataResponseContent.java @@ -0,0 +1,194 @@ +/** + * 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; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = PreviewCimdMetadataResponseContent.Builder.class) +public final class PreviewCimdMetadataResponseContent { + private final Optional clientId; + + private final Optional> errors; + + private final Optional validation; + + private final Optional mappedFields; + + private final Map additionalProperties; + + private PreviewCimdMetadataResponseContent( + Optional clientId, + Optional> errors, + Optional validation, + Optional mappedFields, + Map additionalProperties) { + this.clientId = clientId; + this.errors = errors; + this.validation = validation; + this.mappedFields = mappedFields; + this.additionalProperties = additionalProperties; + } + + /** + * @return The client_id of an existing client registered with this external_client_id, if one exists. + */ + @JsonProperty("client_id") + public Optional getClientId() { + return clientId; + } + + /** + * @return Array of retrieval errors (populated when the metadata document could not be fetched). When present, validation is omitted. + */ + @JsonProperty("errors") + public Optional> getErrors() { + return errors; + } + + @JsonProperty("validation") + public Optional getValidation() { + return validation; + } + + @JsonProperty("mapped_fields") + public Optional getMappedFields() { + return mappedFields; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PreviewCimdMetadataResponseContent + && equalTo((PreviewCimdMetadataResponseContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(PreviewCimdMetadataResponseContent other) { + return clientId.equals(other.clientId) + && errors.equals(other.errors) + && validation.equals(other.validation) + && mappedFields.equals(other.mappedFields); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.clientId, this.errors, this.validation, this.mappedFields); + } + + @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 clientId = Optional.empty(); + + private Optional> errors = Optional.empty(); + + private Optional validation = Optional.empty(); + + private Optional mappedFields = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(PreviewCimdMetadataResponseContent other) { + clientId(other.getClientId()); + errors(other.getErrors()); + validation(other.getValidation()); + mappedFields(other.getMappedFields()); + return this; + } + + /** + *

The client_id of an existing client registered with this external_client_id, if one exists.

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

Array of retrieval errors (populated when the metadata document could not be fetched). When present, validation is omitted.

+ */ + @JsonSetter(value = "errors", nulls = Nulls.SKIP) + public Builder errors(Optional> errors) { + this.errors = errors; + return this; + } + + public Builder errors(List errors) { + this.errors = Optional.ofNullable(errors); + return this; + } + + @JsonSetter(value = "validation", nulls = Nulls.SKIP) + public Builder validation(Optional validation) { + this.validation = validation; + return this; + } + + public Builder validation(CimdValidationResult validation) { + this.validation = Optional.ofNullable(validation); + return this; + } + + @JsonSetter(value = "mapped_fields", nulls = Nulls.SKIP) + public Builder mappedFields(Optional mappedFields) { + this.mappedFields = mappedFields; + return this; + } + + public Builder mappedFields(CimdMappedClientFields mappedFields) { + this.mappedFields = Optional.ofNullable(mappedFields); + return this; + } + + public PreviewCimdMetadataResponseContent build() { + return new PreviewCimdMetadataResponseContent( + clientId, errors, validation, mappedFields, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/PromptLanguageEnum.java b/src/main/java/com/auth0/client/mgmt/types/PromptLanguageEnum.java index 355be8241..28a262cee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PromptLanguageEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/PromptLanguageEnum.java @@ -139,6 +139,8 @@ public final class PromptLanguageEnum { public static final PromptLanguageEnum NL = new PromptLanguageEnum(Value.NL, "nl"); + public static final PromptLanguageEnum ZH_MO = new PromptLanguageEnum(Value.ZH_MO, "zh-MO"); + public static final PromptLanguageEnum VI = new PromptLanguageEnum(Value.VI, "vi"); public static final PromptLanguageEnum BG = new PromptLanguageEnum(Value.BG, "bg"); @@ -333,6 +335,8 @@ public T visit(Visitor visitor) { return visitor.visitRu(); case NL: return visitor.visitNl(); + case ZH_MO: + return visitor.visitZhMo(); case VI: return visitor.visitVi(); case BG: @@ -504,6 +508,8 @@ public static PromptLanguageEnum valueOf(String value) { return RU; case "nl": return NL; + case "zh-MO": + return ZH_MO; case "vi": return VI; case "bg": @@ -700,6 +706,8 @@ public enum Value { ZH_HK, + ZH_MO, + ZH_TW, UNKNOWN @@ -866,6 +874,8 @@ public interface Visitor { T visitZhHk(); + T visitZhMo(); + T visitZhTw(); T visitUnknown(String unknownType); diff --git a/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java b/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java index becc5f202..160f21fe6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java @@ -34,6 +34,8 @@ public final class PublicKeyCredential { private final Optional expiresAt; + private final Optional kid; + private final Map additionalProperties; private PublicKeyCredential( @@ -43,6 +45,7 @@ private PublicKeyCredential( Optional alg, Optional parseExpiryFromCert, Optional expiresAt, + Optional kid, Map additionalProperties) { this.credentialType = credentialType; this.name = name; @@ -50,6 +53,7 @@ private PublicKeyCredential( this.alg = alg; this.parseExpiryFromCert = parseExpiryFromCert; this.expiresAt = expiresAt; + this.kid = kid; this.additionalProperties = additionalProperties; } @@ -95,6 +99,14 @@ public Optional getExpiresAt() { return expiresAt; } + /** + * @return Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64} + */ + @JsonProperty("kid") + public Optional getKid() { + return kid; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -112,13 +124,14 @@ private boolean equalTo(PublicKeyCredential other) { && pem.equals(other.pem) && alg.equals(other.alg) && parseExpiryFromCert.equals(other.parseExpiryFromCert) - && expiresAt.equals(other.expiresAt); + && expiresAt.equals(other.expiresAt) + && kid.equals(other.kid); } @java.lang.Override public int hashCode() { return Objects.hash( - this.credentialType, this.name, this.pem, this.alg, this.parseExpiryFromCert, this.expiresAt); + this.credentialType, this.name, this.pem, this.alg, this.parseExpiryFromCert, this.expiresAt, this.kid); } @java.lang.Override @@ -174,6 +187,13 @@ public interface _FinalStage { _FinalStage expiresAt(Optional expiresAt); _FinalStage expiresAt(OffsetDateTime expiresAt); + + /** + *

Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64}

+ */ + _FinalStage kid(Optional kid); + + _FinalStage kid(String kid); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -182,6 +202,8 @@ public static final class Builder implements CredentialTypeStage, PemStage, _Fin private String pem; + private Optional kid = Optional.empty(); + private Optional expiresAt = Optional.empty(); private Optional parseExpiryFromCert = Optional.empty(); @@ -203,6 +225,7 @@ public Builder from(PublicKeyCredential other) { alg(other.getAlg()); parseExpiryFromCert(other.getParseExpiryFromCert()); expiresAt(other.getExpiresAt()); + kid(other.getKid()); return this; } @@ -225,6 +248,26 @@ public _FinalStage pem(@NotNull String pem) { return this; } + /** + *

Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64}

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

Optional kid (Key ID), used to uniquely identify the credential. If not specified, a kid value will be auto-generated. The kid header parameter in JWTs sent by your client should match this value. Valid format is [0-9a-zA-Z-_]{10,64}

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

The ISO 8601 formatted date representing the expiration of the credential. If not specified (not recommended), the credential never expires. Applies to public_key credential type.

* @return Reference to {@code this} so that method calls can be chained together. @@ -301,7 +344,7 @@ public _FinalStage name(Optional name) { @java.lang.Override public PublicKeyCredential build() { return new PublicKeyCredential( - credentialType, name, pem, alg, parseExpiryFromCert, expiresAt, additionalProperties); + credentialType, name, pem, alg, parseExpiryFromCert, expiresAt, kid, additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientRequestContent.java new file mode 100644 index 000000000..27460c110 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientRequestContent.java @@ -0,0 +1,129 @@ +/** + * 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.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = RegisterCimdClientRequestContent.Builder.class) +public final class RegisterCimdClientRequestContent { + private final String externalClientId; + + private final Map additionalProperties; + + private RegisterCimdClientRequestContent(String externalClientId, Map additionalProperties) { + this.externalClientId = externalClientId; + this.additionalProperties = additionalProperties; + } + + /** + * @return URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations. + */ + @JsonProperty("external_client_id") + public String getExternalClientId() { + return externalClientId; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof RegisterCimdClientRequestContent && equalTo((RegisterCimdClientRequestContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(RegisterCimdClientRequestContent other) { + return externalClientId.equals(other.externalClientId); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.externalClientId); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ExternalClientIdStage builder() { + return new Builder(); + } + + public interface ExternalClientIdStage { + /** + *

URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations.

+ */ + _FinalStage externalClientId(@NotNull String externalClientId); + + Builder from(RegisterCimdClientRequestContent other); + } + + public interface _FinalStage { + RegisterCimdClientRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ExternalClientIdStage, _FinalStage { + private String externalClientId; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(RegisterCimdClientRequestContent other) { + externalClientId(other.getExternalClientId()); + return this; + } + + /** + *

URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations.

+ *

URL to the Client ID Metadata Document. Acts as the unique identifier for upsert operations.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("external_client_id") + public _FinalStage externalClientId(@NotNull String externalClientId) { + this.externalClientId = Objects.requireNonNull(externalClientId, "externalClientId must not be null"); + return this; + } + + @java.lang.Override + public RegisterCimdClientRequestContent build() { + return new RegisterCimdClientRequestContent(externalClientId, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientResponseContent.java new file mode 100644 index 000000000..5c4580776 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/RegisterCimdClientResponseContent.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.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = RegisterCimdClientResponseContent.Builder.class) +public final class RegisterCimdClientResponseContent { + private final String clientId; + + private final CimdMappedClientFields mappedFields; + + private final CimdValidationResult validation; + + private final Map additionalProperties; + + private RegisterCimdClientResponseContent( + String clientId, + CimdMappedClientFields mappedFields, + CimdValidationResult validation, + Map additionalProperties) { + this.clientId = clientId; + this.mappedFields = mappedFields; + this.validation = validation; + this.additionalProperties = additionalProperties; + } + + /** + * @return The Auth0 client_id of the created or updated client + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + @JsonProperty("mapped_fields") + public CimdMappedClientFields getMappedFields() { + return mappedFields; + } + + @JsonProperty("validation") + public CimdValidationResult getValidation() { + return validation; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof RegisterCimdClientResponseContent && equalTo((RegisterCimdClientResponseContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(RegisterCimdClientResponseContent other) { + return clientId.equals(other.clientId) + && mappedFields.equals(other.mappedFields) + && validation.equals(other.validation); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.clientId, this.mappedFields, this.validation); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

The Auth0 client_id of the created or updated client

+ */ + MappedFieldsStage clientId(@NotNull String clientId); + + Builder from(RegisterCimdClientResponseContent other); + } + + public interface MappedFieldsStage { + ValidationStage mappedFields(@NotNull CimdMappedClientFields mappedFields); + } + + public interface ValidationStage { + _FinalStage validation(@NotNull CimdValidationResult validation); + } + + public interface _FinalStage { + RegisterCimdClientResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, MappedFieldsStage, ValidationStage, _FinalStage { + private String clientId; + + private CimdMappedClientFields mappedFields; + + private CimdValidationResult validation; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(RegisterCimdClientResponseContent other) { + clientId(other.getClientId()); + mappedFields(other.getMappedFields()); + validation(other.getValidation()); + return this; + } + + /** + *

The Auth0 client_id of the created or updated client

+ *

The Auth0 client_id of the created or updated client

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public MappedFieldsStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("mapped_fields") + public ValidationStage mappedFields(@NotNull CimdMappedClientFields mappedFields) { + this.mappedFields = Objects.requireNonNull(mappedFields, "mappedFields must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("validation") + public _FinalStage validation(@NotNull CimdValidationResult validation) { + this.validation = Objects.requireNonNull(validation, "validation must not be null"); + return this; + } + + @java.lang.Override + public RegisterCimdClientResponseContent build() { + return new RegisterCimdClientResponseContent(clientId, mappedFields, validation, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServer.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServer.java index 29d88015d..0250de3ab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServer.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServer.java @@ -40,6 +40,8 @@ public final class ResourceServer { private final Optional allowOfflineAccess; + private final Optional allowOnlineAccess; + private final Optional skipConsentForVerifiableFirstPartyClients; private final Optional tokenLifetime; @@ -54,7 +56,7 @@ public final class ResourceServer { private final OptionalNullable consentPolicy; - private final Optional> authorizationDetails; + private final OptionalNullable> authorizationDetails; private final OptionalNullable proofOfPossession; @@ -73,6 +75,7 @@ private ResourceServer( Optional signingAlg, Optional signingSecret, Optional allowOfflineAccess, + Optional allowOnlineAccess, Optional skipConsentForVerifiableFirstPartyClients, Optional tokenLifetime, Optional tokenLifetimeForWeb, @@ -80,7 +83,7 @@ private ResourceServer( Optional tokenDialect, OptionalNullable tokenEncryption, OptionalNullable consentPolicy, - Optional> authorizationDetails, + OptionalNullable> authorizationDetails, OptionalNullable proofOfPossession, Optional subjectTypeAuthorization, Optional clientId, @@ -93,6 +96,7 @@ private ResourceServer( this.signingAlg = signingAlg; this.signingSecret = signingSecret; this.allowOfflineAccess = allowOfflineAccess; + this.allowOnlineAccess = allowOnlineAccess; this.skipConsentForVerifiableFirstPartyClients = skipConsentForVerifiableFirstPartyClients; this.tokenLifetime = tokenLifetime; this.tokenLifetimeForWeb = tokenLifetimeForWeb; @@ -168,6 +172,14 @@ public Optional getAllowOfflineAccess() { return allowOfflineAccess; } + /** + * @return Whether Online Refresh Tokens can be issued for this API (true) or not (false). + */ + @JsonProperty("allow_online_access") + public Optional getAllowOnlineAccess() { + return allowOnlineAccess; + } + /** * @return Whether to skip user consent for applications flagged as first party (true) or not (false). */ @@ -223,8 +235,12 @@ public OptionalNullable getConsentPolicy() { return consentPolicy; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("authorization_details") - public Optional> getAuthorizationDetails() { + public OptionalNullable> getAuthorizationDetails() { + if (authorizationDetails == null) { + return OptionalNullable.absent(); + } return authorizationDetails; } @@ -262,6 +278,12 @@ private OptionalNullable _getConsentPolicy() { return consentPolicy; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("authorization_details") + private OptionalNullable> _getAuthorizationDetails() { + return authorizationDetails; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("proof_of_possession") private OptionalNullable _getProofOfPossession() { @@ -288,6 +310,7 @@ private boolean equalTo(ResourceServer other) { && signingAlg.equals(other.signingAlg) && signingSecret.equals(other.signingSecret) && allowOfflineAccess.equals(other.allowOfflineAccess) + && allowOnlineAccess.equals(other.allowOnlineAccess) && skipConsentForVerifiableFirstPartyClients.equals(other.skipConsentForVerifiableFirstPartyClients) && tokenLifetime.equals(other.tokenLifetime) && tokenLifetimeForWeb.equals(other.tokenLifetimeForWeb) @@ -312,6 +335,7 @@ public int hashCode() { this.signingAlg, this.signingSecret, this.allowOfflineAccess, + this.allowOnlineAccess, this.skipConsentForVerifiableFirstPartyClients, this.tokenLifetime, this.tokenLifetimeForWeb, @@ -352,6 +376,8 @@ public static final class Builder { private Optional allowOfflineAccess = Optional.empty(); + private Optional allowOnlineAccess = Optional.empty(); + private Optional skipConsentForVerifiableFirstPartyClients = Optional.empty(); private Optional tokenLifetime = Optional.empty(); @@ -366,7 +392,7 @@ public static final class Builder { private OptionalNullable consentPolicy = OptionalNullable.absent(); - private Optional> authorizationDetails = Optional.empty(); + private OptionalNullable> authorizationDetails = OptionalNullable.absent(); private OptionalNullable proofOfPossession = OptionalNullable.absent(); @@ -388,6 +414,7 @@ public Builder from(ResourceServer other) { signingAlg(other.getSigningAlg()); signingSecret(other.getSigningSecret()); allowOfflineAccess(other.getAllowOfflineAccess()); + allowOnlineAccess(other.getAllowOnlineAccess()); skipConsentForVerifiableFirstPartyClients(other.getSkipConsentForVerifiableFirstPartyClients()); tokenLifetime(other.getTokenLifetime()); tokenLifetimeForWeb(other.getTokenLifetimeForWeb()); @@ -511,6 +538,20 @@ public Builder allowOfflineAccess(Boolean allowOfflineAccess) { return this; } + /** + *

Whether Online Refresh Tokens can be issued for this API (true) or not (false).

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

Whether to skip user consent for applications flagged as first party (true) or not (false).

*/ @@ -645,13 +686,33 @@ public Builder consentPolicy( } @JsonSetter(value = "authorization_details", nulls = Nulls.SKIP) - public Builder authorizationDetails(Optional> authorizationDetails) { + public Builder authorizationDetails(@Nullable OptionalNullable> authorizationDetails) { this.authorizationDetails = authorizationDetails; return this; } public Builder authorizationDetails(List authorizationDetails) { - this.authorizationDetails = Optional.ofNullable(authorizationDetails); + this.authorizationDetails = OptionalNullable.of(authorizationDetails); + return this; + } + + public Builder authorizationDetails(Optional> authorizationDetails) { + if (authorizationDetails.isPresent()) { + this.authorizationDetails = OptionalNullable.of(authorizationDetails.get()); + } else { + this.authorizationDetails = OptionalNullable.absent(); + } + return this; + } + + public Builder authorizationDetails(com.auth0.client.mgmt.core.Nullable> authorizationDetails) { + if (authorizationDetails.isNull()) { + this.authorizationDetails = OptionalNullable.ofNull(); + } else if (authorizationDetails.isEmpty()) { + this.authorizationDetails = OptionalNullable.absent(); + } else { + this.authorizationDetails = OptionalNullable.of(authorizationDetails.get()); + } return this; } @@ -724,6 +785,7 @@ public ResourceServer build() { signingAlg, signingSecret, allowOfflineAccess, + allowOnlineAccess, skipConsentForVerifiableFirstPartyClients, tokenLifetime, tokenLifetimeForWeb, diff --git a/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java index af4f13d25..045993b10 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java @@ -64,7 +64,7 @@ public final class RotateClientSecretResponseContent { private final Optional jwtConfiguration; - private final Optional> signingKeys; + private final OptionalNullable> signingKeys; private final OptionalNullable encryptionKey; @@ -130,6 +130,14 @@ public final class RotateClientSecretResponseContent { private final Optional> asyncApprovalNotificationChannels; + private final Optional externalMetadataType; + + private final Optional externalMetadataCreatedBy; + + private final Optional externalClientId; + + private final Optional jwksUri; + private final Map additionalProperties; private RotateClientSecretResponseContent( @@ -153,7 +161,7 @@ private RotateClientSecretResponseContent( Optional oidcLogout, Optional> grantTypes, Optional jwtConfiguration, - Optional> signingKeys, + OptionalNullable> signingKeys, OptionalNullable encryptionKey, Optional sso, Optional ssoDisabled, @@ -186,6 +194,10 @@ private RotateClientSecretResponseContent( Optional expressConfiguration, Optional resourceServerIdentifier, Optional> asyncApprovalNotificationChannels, + Optional externalMetadataType, + Optional externalMetadataCreatedBy, + Optional externalClientId, + Optional jwksUri, Map additionalProperties) { this.clientId = clientId; this.tenant = tenant; @@ -240,6 +252,10 @@ private RotateClientSecretResponseContent( this.expressConfiguration = expressConfiguration; this.resourceServerIdentifier = resourceServerIdentifier; this.asyncApprovalNotificationChannels = asyncApprovalNotificationChannels; + this.externalMetadataType = externalMetadataType; + this.externalMetadataCreatedBy = externalMetadataCreatedBy; + this.externalClientId = externalClientId; + this.jwksUri = jwksUri; this.additionalProperties = additionalProperties; } @@ -395,8 +411,12 @@ public Optional getJwtConfiguration() { return jwtConfiguration; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("signing_keys") - public Optional> getSigningKeys() { + public OptionalNullable> getSigningKeys() { + if (signingKeys == null) { + return OptionalNullable.absent(); + } return signingKeys; } @@ -634,12 +654,44 @@ public Optional> getAsyncApprovalNo return asyncApprovalNotificationChannels; } + @JsonProperty("external_metadata_type") + public Optional getExternalMetadataType() { + return externalMetadataType; + } + + @JsonProperty("external_metadata_created_by") + public Optional getExternalMetadataCreatedBy() { + return externalMetadataCreatedBy; + } + + /** + * @return An alternate client identifier to be used during authorization flows. Only supports CIMD-based client identifiers. + */ + @JsonProperty("external_client_id") + public Optional getExternalClientId() { + return externalClientId; + } + + /** + * @return URL for the JSON Web Key Set (JWKS) containing the public keys used for private_key_jwt authentication. Only present for CIMD clients using private_key_jwt authentication. + */ + @JsonProperty("jwks_uri") + public Optional getJwksUri() { + return jwksUri; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_transfer") private OptionalNullable _getSessionTransfer() { return sessionTransfer; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("signing_keys") + private OptionalNullable> _getSigningKeys() { + return signingKeys; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("encryption_key") private OptionalNullable _getEncryptionKey() { @@ -741,7 +793,11 @@ private boolean equalTo(RotateClientSecretResponseContent other) { && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) && resourceServerIdentifier.equals(other.resourceServerIdentifier) - && asyncApprovalNotificationChannels.equals(other.asyncApprovalNotificationChannels); + && asyncApprovalNotificationChannels.equals(other.asyncApprovalNotificationChannels) + && externalMetadataType.equals(other.externalMetadataType) + && externalMetadataCreatedBy.equals(other.externalMetadataCreatedBy) + && externalClientId.equals(other.externalClientId) + && jwksUri.equals(other.jwksUri); } @java.lang.Override @@ -799,7 +855,11 @@ public int hashCode() { this.tokenQuota, this.expressConfiguration, this.resourceServerIdentifier, - this.asyncApprovalNotificationChannels); + this.asyncApprovalNotificationChannels, + this.externalMetadataType, + this.externalMetadataCreatedBy, + this.externalClientId, + this.jwksUri); } @java.lang.Override @@ -853,7 +913,7 @@ public static final class Builder { private Optional jwtConfiguration = Optional.empty(); - private Optional> signingKeys = Optional.empty(); + private OptionalNullable> signingKeys = OptionalNullable.absent(); private OptionalNullable encryptionKey = OptionalNullable.absent(); @@ -920,6 +980,14 @@ public static final class Builder { private Optional> asyncApprovalNotificationChannels = Optional.empty(); + private Optional externalMetadataType = Optional.empty(); + + private Optional externalMetadataCreatedBy = Optional.empty(); + + private Optional externalClientId = Optional.empty(); + + private Optional jwksUri = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -979,6 +1047,10 @@ public Builder from(RotateClientSecretResponseContent other) { expressConfiguration(other.getExpressConfiguration()); resourceServerIdentifier(other.getResourceServerIdentifier()); asyncApprovalNotificationChannels(other.getAsyncApprovalNotificationChannels()); + externalMetadataType(other.getExternalMetadataType()); + externalMetadataCreatedBy(other.getExternalMetadataCreatedBy()); + externalClientId(other.getExternalClientId()); + jwksUri(other.getJwksUri()); return this; } @@ -1272,13 +1344,33 @@ public Builder jwtConfiguration(ClientJwtConfiguration jwtConfiguration) { } @JsonSetter(value = "signing_keys", nulls = Nulls.SKIP) - public Builder signingKeys(Optional> signingKeys) { + public Builder signingKeys(@Nullable OptionalNullable> signingKeys) { this.signingKeys = signingKeys; return this; } public Builder signingKeys(List signingKeys) { - this.signingKeys = Optional.ofNullable(signingKeys); + this.signingKeys = OptionalNullable.of(signingKeys); + return this; + } + + public Builder signingKeys(Optional> signingKeys) { + if (signingKeys.isPresent()) { + this.signingKeys = OptionalNullable.of(signingKeys.get()); + } else { + this.signingKeys = OptionalNullable.absent(); + } + return this; + } + + public Builder signingKeys(com.auth0.client.mgmt.core.Nullable> signingKeys) { + if (signingKeys.isNull()) { + this.signingKeys = OptionalNullable.ofNull(); + } else if (signingKeys.isEmpty()) { + this.signingKeys = OptionalNullable.absent(); + } else { + this.signingKeys = OptionalNullable.of(signingKeys.get()); + } return this; } @@ -1815,6 +1907,57 @@ public Builder asyncApprovalNotificationChannels( return this; } + @JsonSetter(value = "external_metadata_type", nulls = Nulls.SKIP) + public Builder externalMetadataType(Optional externalMetadataType) { + this.externalMetadataType = externalMetadataType; + return this; + } + + public Builder externalMetadataType(ClientExternalMetadataTypeEnum externalMetadataType) { + this.externalMetadataType = Optional.ofNullable(externalMetadataType); + return this; + } + + @JsonSetter(value = "external_metadata_created_by", nulls = Nulls.SKIP) + public Builder externalMetadataCreatedBy( + Optional externalMetadataCreatedBy) { + this.externalMetadataCreatedBy = externalMetadataCreatedBy; + return this; + } + + public Builder externalMetadataCreatedBy(ClientExternalMetadataCreatedByEnum externalMetadataCreatedBy) { + this.externalMetadataCreatedBy = Optional.ofNullable(externalMetadataCreatedBy); + return this; + } + + /** + *

An alternate client identifier to be used during authorization flows. Only supports CIMD-based client identifiers.

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

URL for the JSON Web Key Set (JWKS) containing the public keys used for private_key_jwt authentication. Only present for CIMD clients using private_key_jwt authentication.

+ */ + @JsonSetter(value = "jwks_uri", nulls = Nulls.SKIP) + public Builder jwksUri(Optional jwksUri) { + this.jwksUri = jwksUri; + return this; + } + + public Builder jwksUri(String jwksUri) { + this.jwksUri = Optional.ofNullable(jwksUri); + return this; + } + public RotateClientSecretResponseContent build() { return new RotateClientSecretResponseContent( clientId, @@ -1870,6 +2013,10 @@ public RotateClientSecretResponseContent build() { expressConfiguration, resourceServerIdentifier, asyncApprovalNotificationChannels, + externalMetadataType, + externalMetadataCreatedBy, + externalClientId, + jwksUri, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionOptions.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionOptions.java index 488c85639..32f12cec5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionOptions.java @@ -26,7 +26,7 @@ public final class SelfServiceProfileSsoTicketConnectionOptions { private final OptionalNullable iconUrl; - private final Optional> domainAliases; + private final OptionalNullable> domainAliases; private final OptionalNullable idpinitiated; @@ -34,7 +34,7 @@ public final class SelfServiceProfileSsoTicketConnectionOptions { private SelfServiceProfileSsoTicketConnectionOptions( OptionalNullable iconUrl, - Optional> domainAliases, + OptionalNullable> domainAliases, OptionalNullable idpinitiated, Map additionalProperties) { this.iconUrl = iconUrl; @@ -58,8 +58,12 @@ public OptionalNullable getIconUrl() { /** * @return List of domain_aliases that can be authenticated in the Identity Provider */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("domain_aliases") - public Optional> getDomainAliases() { + public OptionalNullable> getDomainAliases() { + if (domainAliases == null) { + return OptionalNullable.absent(); + } return domainAliases; } @@ -78,6 +82,12 @@ private OptionalNullable _getIconUrl() { return iconUrl; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("domain_aliases") + private OptionalNullable> _getDomainAliases() { + return domainAliases; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("idpinitiated") private OptionalNullable _getIdpinitiated() { @@ -120,7 +130,7 @@ public static Builder builder() { public static final class Builder { private OptionalNullable iconUrl = OptionalNullable.absent(); - private Optional> domainAliases = Optional.empty(); + private OptionalNullable> domainAliases = OptionalNullable.absent(); private OptionalNullable idpinitiated = OptionalNullable.absent(); @@ -175,13 +185,33 @@ public Builder iconUrl(com.auth0.client.mgmt.core.Nullable iconUrl) { *

List of domain_aliases that can be authenticated in the Identity Provider

*/ @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) - public Builder domainAliases(Optional> domainAliases) { + public Builder domainAliases(@Nullable OptionalNullable> domainAliases) { this.domainAliases = domainAliases; return this; } public Builder domainAliases(List domainAliases) { - this.domainAliases = Optional.ofNullable(domainAliases); + this.domainAliases = OptionalNullable.of(domainAliases); + return this; + } + + public Builder domainAliases(Optional> domainAliases) { + if (domainAliases.isPresent()) { + this.domainAliases = OptionalNullable.of(domainAliases.get()); + } else { + this.domainAliases = OptionalNullable.absent(); + } + return this; + } + + public Builder domainAliases(com.auth0.client.mgmt.core.Nullable> domainAliases) { + if (domainAliases.isNull()) { + this.domainAliases = OptionalNullable.ofNull(); + } else if (domainAliases.isEmpty()) { + this.domainAliases = OptionalNullable.absent(); + } else { + this.domainAliases = OptionalNullable.of(domainAliases.get()); + } return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetDefaultCustomDomainRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/SetDefaultCustomDomainRequestContent.java new file mode 100644 index 000000000..aafa490b5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/SetDefaultCustomDomainRequestContent.java @@ -0,0 +1,130 @@ +/** + * 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.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = SetDefaultCustomDomainRequestContent.Builder.class) +public final class SetDefaultCustomDomainRequestContent { + private final String domain; + + private final Map additionalProperties; + + private SetDefaultCustomDomainRequestContent(String domain, Map additionalProperties) { + this.domain = domain; + this.additionalProperties = additionalProperties; + } + + /** + * @return The domain to set as the default custom domain. Must be a verified custom domain or the canonical domain. + */ + @JsonProperty("domain") + public String getDomain() { + return domain; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof SetDefaultCustomDomainRequestContent + && equalTo((SetDefaultCustomDomainRequestContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(SetDefaultCustomDomainRequestContent other) { + return domain.equals(other.domain); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.domain); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static DomainStage builder() { + return new Builder(); + } + + public interface DomainStage { + /** + *

The domain to set as the default custom domain. Must be a verified custom domain or the canonical domain.

+ */ + _FinalStage domain(@NotNull String domain); + + Builder from(SetDefaultCustomDomainRequestContent other); + } + + public interface _FinalStage { + SetDefaultCustomDomainRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements DomainStage, _FinalStage { + private String domain; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(SetDefaultCustomDomainRequestContent other) { + domain(other.getDomain()); + return this; + } + + /** + *

The domain to set as the default custom domain. Must be a verified custom domain or the canonical domain.

+ *

The domain to set as the default custom domain. Must be a verified custom domain or the canonical domain.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("domain") + public _FinalStage domain(@NotNull String domain) { + this.domain = Objects.requireNonNull(domain, "domain must not be null"); + return this; + } + + @java.lang.Override + public SetDefaultCustomDomainRequestContent build() { + return new SetDefaultCustomDomainRequestContent(domain, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java index a5d7e845f..11890ffa1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java @@ -10,10 +10,12 @@ 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) @@ -23,7 +25,7 @@ public final class SetNetworkAclRequestContent { private final boolean active; - private final double priority; + private final Optional priority; private final NetworkAclRule rule; @@ -32,7 +34,7 @@ public final class SetNetworkAclRequestContent { private SetNetworkAclRequestContent( String description, boolean active, - double priority, + Optional priority, NetworkAclRule rule, Map additionalProperties) { this.description = description; @@ -59,7 +61,7 @@ public boolean getActive() { * @return Indicates the order in which the ACL will be evaluated relative to other ACL rules. */ @JsonProperty("priority") - public double getPriority() { + public Optional getPriority() { return priority; } @@ -82,7 +84,7 @@ public Map getAdditionalProperties() { private boolean equalTo(SetNetworkAclRequestContent other) { return description.equals(other.description) && active == other.active - && priority == other.priority + && priority.equals(other.priority) && rule.equals(other.rule); } @@ -110,14 +112,7 @@ public interface ActiveStage { /** *

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

*/ - PriorityStage active(boolean active); - } - - public interface PriorityStage { - /** - *

Indicates the order in which the ACL will be evaluated relative to other ACL rules.

- */ - RuleStage priority(double priority); + RuleStage active(boolean active); } public interface RuleStage { @@ -130,18 +125,25 @@ public interface _FinalStage { _FinalStage additionalProperty(String key, Object value); _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Indicates the order in which the ACL will be evaluated relative to other ACL rules.

+ */ + _FinalStage priority(Optional priority); + + _FinalStage priority(Double priority); } @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder implements DescriptionStage, ActiveStage, PriorityStage, RuleStage, _FinalStage { + public static final class Builder implements DescriptionStage, ActiveStage, RuleStage, _FinalStage { private String description; private boolean active; - private double priority; - private NetworkAclRule rule; + private Optional priority = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -170,27 +172,35 @@ public ActiveStage description(@NotNull String description) { */ @java.lang.Override @JsonSetter("active") - public PriorityStage active(boolean active) { + public RuleStage active(boolean active) { this.active = active; return this; } + @java.lang.Override + @JsonSetter("rule") + public _FinalStage rule(@NotNull NetworkAclRule rule) { + this.rule = Objects.requireNonNull(rule, "rule must not be null"); + return this; + } + /** - *

Indicates the order in which the ACL will be evaluated relative to other ACL rules.

*

Indicates the order in which the ACL will be evaluated relative to other ACL rules.

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override - @JsonSetter("priority") - public RuleStage priority(double priority) { - this.priority = priority; + public _FinalStage priority(Double priority) { + this.priority = Optional.ofNullable(priority); return this; } + /** + *

Indicates the order in which the ACL will be evaluated relative to other ACL rules.

+ */ @java.lang.Override - @JsonSetter("rule") - public _FinalStage rule(@NotNull NetworkAclRule rule) { - this.rule = Objects.requireNonNull(rule, "rule must not be null"); + @JsonSetter(value = "priority", nulls = Nulls.SKIP) + public _FinalStage priority(Optional priority) { + this.priority = priority; return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/SupportedLocales.java b/src/main/java/com/auth0/client/mgmt/types/SupportedLocales.java index 506db0d55..e8fbb9554 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SupportedLocales.java +++ b/src/main/java/com/auth0/client/mgmt/types/SupportedLocales.java @@ -139,6 +139,8 @@ public final class SupportedLocales { public static final SupportedLocales NL = new SupportedLocales(Value.NL, "nl"); + public static final SupportedLocales ZH_MO = new SupportedLocales(Value.ZH_MO, "zh-MO"); + public static final SupportedLocales VI = new SupportedLocales(Value.VI, "vi"); public static final SupportedLocales BG = new SupportedLocales(Value.BG, "bg"); @@ -333,6 +335,8 @@ public T visit(Visitor visitor) { return visitor.visitRu(); case NL: return visitor.visitNl(); + case ZH_MO: + return visitor.visitZhMo(); case VI: return visitor.visitVi(); case BG: @@ -504,6 +508,8 @@ public static SupportedLocales valueOf(String value) { return RU; case "nl": return NL; + case "zh-MO": + return ZH_MO; case "vi": return VI; case "bg": @@ -700,6 +706,8 @@ public enum Value { ZH_HK, + ZH_MO, + ZH_TW, UNKNOWN @@ -866,6 +874,8 @@ public interface Visitor { T visitZhHk(); + T visitZhMo(); + T visitZhTw(); T visitUnknown(String unknownType); diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYammerStrategy.java b/src/main/java/com/auth0/client/mgmt/types/SynchronizeGroupsEaEnum.java similarity index 56% rename from src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYammerStrategy.java rename to src/main/java/com/auth0/client/mgmt/types/SynchronizeGroupsEaEnum.java index 1f73ca49d..8e27f3a8c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYammerStrategy.java +++ b/src/main/java/com/auth0/client/mgmt/types/SynchronizeGroupsEaEnum.java @@ -6,15 +6,16 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -public final class CreateConnectionRequestContentYammerStrategy { - public static final CreateConnectionRequestContentYammerStrategy YAMMER = - new CreateConnectionRequestContentYammerStrategy(Value.YAMMER, "yammer"); +public final class SynchronizeGroupsEaEnum { + public static final SynchronizeGroupsEaEnum ALL = new SynchronizeGroupsEaEnum(Value.ALL, "all"); + + public static final SynchronizeGroupsEaEnum OFF = new SynchronizeGroupsEaEnum(Value.OFF, "off"); private final Value value; private final String string; - CreateConnectionRequestContentYammerStrategy(Value value, String string) { + SynchronizeGroupsEaEnum(Value value, String string) { this.value = value; this.string = string; } @@ -32,8 +33,8 @@ public String toString() { @java.lang.Override public boolean equals(Object other) { return (this == other) - || (other instanceof CreateConnectionRequestContentYammerStrategy - && this.string.equals(((CreateConnectionRequestContentYammerStrategy) other).string)); + || (other instanceof SynchronizeGroupsEaEnum + && this.string.equals(((SynchronizeGroupsEaEnum) other).string)); } @java.lang.Override @@ -43,8 +44,10 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { - case YAMMER: - return visitor.visitYammer(); + case ALL: + return visitor.visitAll(); + case OFF: + return visitor.visitOff(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -52,23 +55,29 @@ public T visit(Visitor visitor) { } @JsonCreator(mode = JsonCreator.Mode.DELEGATING) - public static CreateConnectionRequestContentYammerStrategy valueOf(String value) { + public static SynchronizeGroupsEaEnum valueOf(String value) { switch (value) { - case "yammer": - return YAMMER; + case "all": + return ALL; + case "off": + return OFF; default: - return new CreateConnectionRequestContentYammerStrategy(Value.UNKNOWN, value); + return new SynchronizeGroupsEaEnum(Value.UNKNOWN, value); } } public enum Value { - YAMMER, + ALL, + + OFF, UNKNOWN } public interface Visitor { - T visitYammer(); + T visitAll(); + + T visitOff(); T visitUnknown(String unknownType); } diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsSupportedLocalesEnum.java b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsSupportedLocalesEnum.java index c7c7f9f27..957135a61 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsSupportedLocalesEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsSupportedLocalesEnum.java @@ -152,6 +152,9 @@ public final class TenantSettingsSupportedLocalesEnum { public static final TenantSettingsSupportedLocalesEnum NL = new TenantSettingsSupportedLocalesEnum(Value.NL, "nl"); + public static final TenantSettingsSupportedLocalesEnum ZH_MO = + new TenantSettingsSupportedLocalesEnum(Value.ZH_MO, "zh-MO"); + public static final TenantSettingsSupportedLocalesEnum VI = new TenantSettingsSupportedLocalesEnum(Value.VI, "vi"); public static final TenantSettingsSupportedLocalesEnum BG = new TenantSettingsSupportedLocalesEnum(Value.BG, "bg"); @@ -352,6 +355,8 @@ public T visit(Visitor visitor) { return visitor.visitRu(); case NL: return visitor.visitNl(); + case ZH_MO: + return visitor.visitZhMo(); case VI: return visitor.visitVi(); case BG: @@ -523,6 +528,8 @@ public static TenantSettingsSupportedLocalesEnum valueOf(String value) { return RU; case "nl": return NL; + case "zh-MO": + return ZH_MO; case "vi": return VI; case "bg": @@ -719,6 +726,8 @@ public enum Value { ZH_HK, + ZH_MO, + ZH_TW, UNKNOWN @@ -885,6 +894,8 @@ public interface Visitor { T visitZhHk(); + T visitZhMo(); + T visitZhTw(); T visitUnknown(String unknownType); 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 09dcad641..ab04c8517 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateAculResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateAculResponseContent.java @@ -26,13 +26,13 @@ public final class UpdateAculResponseContent { private final Optional renderingMode; - private final Optional> contextConfiguration; + private final OptionalNullable> contextConfiguration; private final OptionalNullable defaultHeadTagsDisabled; private final OptionalNullable usePageTemplate; - private final Optional> headTags; + private final OptionalNullable> headTags; private final OptionalNullable filters; @@ -40,10 +40,10 @@ public final class UpdateAculResponseContent { private UpdateAculResponseContent( Optional renderingMode, - Optional> contextConfiguration, + OptionalNullable> contextConfiguration, OptionalNullable defaultHeadTagsDisabled, OptionalNullable usePageTemplate, - Optional> headTags, + OptionalNullable> headTags, OptionalNullable filters, Map additionalProperties) { this.renderingMode = renderingMode; @@ -63,8 +63,12 @@ public Optional getRenderingMode() { return renderingMode; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("context_configuration") - public Optional> getContextConfiguration() { + public OptionalNullable> getContextConfiguration() { + if (contextConfiguration == null) { + return OptionalNullable.absent(); + } return contextConfiguration; } @@ -95,8 +99,12 @@ public OptionalNullable getUsePageTemplate() { /** * @return An array of head tags */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("head_tags") - public Optional> getHeadTags() { + public OptionalNullable> getHeadTags() { + if (headTags == null) { + return OptionalNullable.absent(); + } return headTags; } @@ -109,6 +117,12 @@ public OptionalNullable getFilters() { return filters; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("context_configuration") + private OptionalNullable> _getContextConfiguration() { + return contextConfiguration; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("default_head_tags_disabled") private OptionalNullable _getDefaultHeadTagsDisabled() { @@ -121,6 +135,12 @@ private OptionalNullable _getUsePageTemplate() { return usePageTemplate; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("head_tags") + private OptionalNullable> _getHeadTags() { + return headTags; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("filters") private OptionalNullable _getFilters() { @@ -171,13 +191,13 @@ public static Builder builder() { public static final class Builder { private Optional renderingMode = Optional.empty(); - private Optional> contextConfiguration = Optional.empty(); + private OptionalNullable> contextConfiguration = OptionalNullable.absent(); private OptionalNullable defaultHeadTagsDisabled = OptionalNullable.absent(); private OptionalNullable usePageTemplate = OptionalNullable.absent(); - private Optional> headTags = Optional.empty(); + private OptionalNullable> headTags = OptionalNullable.absent(); private OptionalNullable filters = OptionalNullable.absent(); @@ -211,13 +231,35 @@ public Builder renderingMode(AculRenderingModeEnum renderingMode) { } @JsonSetter(value = "context_configuration", nulls = Nulls.SKIP) - public Builder contextConfiguration(Optional> contextConfiguration) { + public Builder contextConfiguration( + @Nullable OptionalNullable> contextConfiguration) { this.contextConfiguration = contextConfiguration; return this; } public Builder contextConfiguration(List contextConfiguration) { - this.contextConfiguration = Optional.ofNullable(contextConfiguration); + this.contextConfiguration = OptionalNullable.of(contextConfiguration); + return this; + } + + public Builder contextConfiguration(Optional> contextConfiguration) { + if (contextConfiguration.isPresent()) { + this.contextConfiguration = OptionalNullable.of(contextConfiguration.get()); + } else { + this.contextConfiguration = OptionalNullable.absent(); + } + return this; + } + + public Builder contextConfiguration( + com.auth0.client.mgmt.core.Nullable> contextConfiguration) { + if (contextConfiguration.isNull()) { + this.contextConfiguration = OptionalNullable.ofNull(); + } else if (contextConfiguration.isEmpty()) { + this.contextConfiguration = OptionalNullable.absent(); + } else { + this.contextConfiguration = OptionalNullable.of(contextConfiguration.get()); + } return this; } @@ -293,13 +335,33 @@ public Builder usePageTemplate(com.auth0.client.mgmt.core.Nullable useP *

An array of head tags

*/ @JsonSetter(value = "head_tags", nulls = Nulls.SKIP) - public Builder headTags(Optional> headTags) { + public Builder headTags(@Nullable OptionalNullable> headTags) { this.headTags = headTags; return this; } public Builder headTags(List headTags) { - this.headTags = Optional.ofNullable(headTags); + this.headTags = OptionalNullable.of(headTags); + return this; + } + + public Builder headTags(Optional> headTags) { + if (headTags.isPresent()) { + this.headTags = OptionalNullable.of(headTags.get()); + } else { + this.headTags = OptionalNullable.absent(); + } + return this; + } + + public Builder headTags(com.auth0.client.mgmt.core.Nullable> headTags) { + if (headTags.isNull()) { + this.headTags = OptionalNullable.ofNull(); + } else if (headTags.isEmpty()) { + this.headTags = OptionalNullable.absent(); + } else { + this.headTags = OptionalNullable.of(headTags.get()); + } return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantRequestContent.java index f743e6697..7121155a3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantRequestContent.java @@ -24,7 +24,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateClientGrantRequestContent.Builder.class) public final class UpdateClientGrantRequestContent { - private final Optional> scope; + private final OptionalNullable> scope; private final OptionalNullable organizationUsage; @@ -37,7 +37,7 @@ public final class UpdateClientGrantRequestContent { private final Map additionalProperties; private UpdateClientGrantRequestContent( - Optional> scope, + OptionalNullable> scope, OptionalNullable organizationUsage, OptionalNullable allowAnyOrganization, Optional> authorizationDetailsTypes, @@ -54,8 +54,12 @@ private UpdateClientGrantRequestContent( /** * @return Scopes allowed for this client grant. */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("scope") - public Optional> getScope() { + public OptionalNullable> getScope() { + if (scope == null) { + return OptionalNullable.absent(); + } return scope; } @@ -100,6 +104,12 @@ public OptionalNullable getAllowAllScopes() { return allowAllScopes; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("scope") + private OptionalNullable> _getScope() { + return scope; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("organization_usage") private OptionalNullable _getOrganizationUsage() { @@ -158,7 +168,7 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { - private Optional> scope = Optional.empty(); + private OptionalNullable> scope = OptionalNullable.absent(); private OptionalNullable organizationUsage = OptionalNullable.absent(); @@ -187,13 +197,33 @@ public Builder from(UpdateClientGrantRequestContent other) { *

Scopes allowed for this client grant.

*/ @JsonSetter(value = "scope", nulls = Nulls.SKIP) - public Builder scope(Optional> scope) { + public Builder scope(@Nullable OptionalNullable> scope) { this.scope = scope; return this; } public Builder scope(List scope) { - this.scope = Optional.ofNullable(scope); + this.scope = OptionalNullable.of(scope); + return this; + } + + public Builder scope(Optional> scope) { + if (scope.isPresent()) { + this.scope = OptionalNullable.of(scope.get()); + } else { + this.scope = OptionalNullable.absent(); + } + return this; + } + + public Builder scope(com.auth0.client.mgmt.core.Nullable> scope) { + if (scope.isNull()) { + this.scope = OptionalNullable.ofNull(); + } else if (scope.isEmpty()) { + this.scope = OptionalNullable.absent(); + } else { + this.scope = OptionalNullable.of(scope.get()); + } return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java index 1fc60b7cd..2a177d1c5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java @@ -102,7 +102,7 @@ public final class UpdateClientRequestContent { private final OptionalNullable organizationRequireBehavior; - private final Optional> organizationDiscoveryMethods; + private final OptionalNullable> organizationDiscoveryMethods; private final OptionalNullable clientAuthenticationMethods; @@ -122,7 +122,7 @@ public final class UpdateClientRequestContent { private final OptionalNullable expressConfiguration; - private final Optional> asyncApprovalNotificationChannels; + private final OptionalNullable> asyncApprovalNotificationChannels; private final Map additionalProperties; @@ -166,7 +166,7 @@ private UpdateClientRequestContent( OptionalNullable defaultOrganization, OptionalNullable organizationUsage, OptionalNullable organizationRequireBehavior, - Optional> organizationDiscoveryMethods, + OptionalNullable> organizationDiscoveryMethods, OptionalNullable clientAuthenticationMethods, Optional requirePushedAuthorizationRequests, Optional requireProofOfPossession, @@ -176,7 +176,7 @@ private UpdateClientRequestContent( OptionalNullable tokenExchange, OptionalNullable parRequestExpiry, OptionalNullable expressConfiguration, - Optional> asyncApprovalNotificationChannels, + OptionalNullable> asyncApprovalNotificationChannels, Map additionalProperties) { this.name = name; this.description = description; @@ -543,8 +543,12 @@ public OptionalNullable getOrganizat /** * @return Defines the available methods for organization discovery during the pre_login_prompt. Users can discover their organization either by email, organization_name or both. */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("organization_discovery_methods") - public Optional> getOrganizationDiscoveryMethods() { + public OptionalNullable> getOrganizationDiscoveryMethods() { + if (organizationDiscoveryMethods == null) { + return OptionalNullable.absent(); + } return organizationDiscoveryMethods; } @@ -631,8 +635,12 @@ public OptionalNullable getExpressConfiguration() { return expressConfiguration; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("async_approval_notification_channels") - public Optional> getAsyncApprovalNotificationChannels() { + public OptionalNullable> getAsyncApprovalNotificationChannels() { + if (asyncApprovalNotificationChannels == null) { + return OptionalNullable.absent(); + } return asyncApprovalNotificationChannels; } @@ -690,6 +698,12 @@ private OptionalNullable _getOrganiz return organizationRequireBehavior; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("organization_discovery_methods") + private OptionalNullable> _getOrganizationDiscoveryMethods() { + return organizationDiscoveryMethods; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("client_authentication_methods") private OptionalNullable _getClientAuthenticationMethods() { @@ -726,6 +740,12 @@ private OptionalNullable _getExpressConfiguration() return expressConfiguration; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("async_approval_notification_channels") + private OptionalNullable> _getAsyncApprovalNotificationChannels() { + return asyncApprovalNotificationChannels; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -937,7 +957,8 @@ public static final class Builder { private OptionalNullable organizationRequireBehavior = OptionalNullable.absent(); - private Optional> organizationDiscoveryMethods = Optional.empty(); + private OptionalNullable> organizationDiscoveryMethods = + OptionalNullable.absent(); private OptionalNullable clientAuthenticationMethods = OptionalNullable.absent(); @@ -957,8 +978,8 @@ public static final class Builder { private OptionalNullable expressConfiguration = OptionalNullable.absent(); - private Optional> asyncApprovalNotificationChannels = - Optional.empty(); + private OptionalNullable> asyncApprovalNotificationChannels = + OptionalNullable.absent(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -1723,14 +1744,37 @@ public Builder organizationRequireBehavior( */ @JsonSetter(value = "organization_discovery_methods", nulls = Nulls.SKIP) public Builder organizationDiscoveryMethods( - Optional> organizationDiscoveryMethods) { + @Nullable OptionalNullable> organizationDiscoveryMethods) { this.organizationDiscoveryMethods = organizationDiscoveryMethods; return this; } public Builder organizationDiscoveryMethods( List organizationDiscoveryMethods) { - this.organizationDiscoveryMethods = Optional.ofNullable(organizationDiscoveryMethods); + this.organizationDiscoveryMethods = OptionalNullable.of(organizationDiscoveryMethods); + return this; + } + + public Builder organizationDiscoveryMethods( + Optional> organizationDiscoveryMethods) { + if (organizationDiscoveryMethods.isPresent()) { + this.organizationDiscoveryMethods = OptionalNullable.of(organizationDiscoveryMethods.get()); + } else { + this.organizationDiscoveryMethods = OptionalNullable.absent(); + } + return this; + } + + public Builder organizationDiscoveryMethods( + com.auth0.client.mgmt.core.Nullable> + organizationDiscoveryMethods) { + if (organizationDiscoveryMethods.isNull()) { + this.organizationDiscoveryMethods = OptionalNullable.ofNull(); + } else if (organizationDiscoveryMethods.isEmpty()) { + this.organizationDiscoveryMethods = OptionalNullable.absent(); + } else { + this.organizationDiscoveryMethods = OptionalNullable.of(organizationDiscoveryMethods.get()); + } return this; } @@ -1981,14 +2025,39 @@ public Builder expressConfiguration( @JsonSetter(value = "async_approval_notification_channels", nulls = Nulls.SKIP) public Builder asyncApprovalNotificationChannels( - Optional> asyncApprovalNotificationChannels) { + @Nullable + OptionalNullable> + asyncApprovalNotificationChannels) { this.asyncApprovalNotificationChannels = asyncApprovalNotificationChannels; return this; } public Builder asyncApprovalNotificationChannels( List asyncApprovalNotificationChannels) { - this.asyncApprovalNotificationChannels = Optional.ofNullable(asyncApprovalNotificationChannels); + this.asyncApprovalNotificationChannels = OptionalNullable.of(asyncApprovalNotificationChannels); + return this; + } + + public Builder asyncApprovalNotificationChannels( + Optional> asyncApprovalNotificationChannels) { + if (asyncApprovalNotificationChannels.isPresent()) { + this.asyncApprovalNotificationChannels = OptionalNullable.of(asyncApprovalNotificationChannels.get()); + } else { + this.asyncApprovalNotificationChannels = OptionalNullable.absent(); + } + return this; + } + + public Builder asyncApprovalNotificationChannels( + com.auth0.client.mgmt.core.Nullable> + asyncApprovalNotificationChannels) { + if (asyncApprovalNotificationChannels.isNull()) { + this.asyncApprovalNotificationChannels = OptionalNullable.ofNull(); + } else if (asyncApprovalNotificationChannels.isEmpty()) { + this.asyncApprovalNotificationChannels = OptionalNullable.absent(); + } else { + this.asyncApprovalNotificationChannels = OptionalNullable.of(asyncApprovalNotificationChannels.get()); + } return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java index ae9add228..6dfc755dc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java @@ -64,7 +64,7 @@ public final class UpdateClientResponseContent { private final Optional jwtConfiguration; - private final Optional> signingKeys; + private final OptionalNullable> signingKeys; private final OptionalNullable encryptionKey; @@ -130,6 +130,14 @@ public final class UpdateClientResponseContent { private final Optional> asyncApprovalNotificationChannels; + private final Optional externalMetadataType; + + private final Optional externalMetadataCreatedBy; + + private final Optional externalClientId; + + private final Optional jwksUri; + private final Map additionalProperties; private UpdateClientResponseContent( @@ -153,7 +161,7 @@ private UpdateClientResponseContent( Optional oidcLogout, Optional> grantTypes, Optional jwtConfiguration, - Optional> signingKeys, + OptionalNullable> signingKeys, OptionalNullable encryptionKey, Optional sso, Optional ssoDisabled, @@ -186,6 +194,10 @@ private UpdateClientResponseContent( Optional expressConfiguration, Optional resourceServerIdentifier, Optional> asyncApprovalNotificationChannels, + Optional externalMetadataType, + Optional externalMetadataCreatedBy, + Optional externalClientId, + Optional jwksUri, Map additionalProperties) { this.clientId = clientId; this.tenant = tenant; @@ -240,6 +252,10 @@ private UpdateClientResponseContent( this.expressConfiguration = expressConfiguration; this.resourceServerIdentifier = resourceServerIdentifier; this.asyncApprovalNotificationChannels = asyncApprovalNotificationChannels; + this.externalMetadataType = externalMetadataType; + this.externalMetadataCreatedBy = externalMetadataCreatedBy; + this.externalClientId = externalClientId; + this.jwksUri = jwksUri; this.additionalProperties = additionalProperties; } @@ -395,8 +411,12 @@ public Optional getJwtConfiguration() { return jwtConfiguration; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("signing_keys") - public Optional> getSigningKeys() { + public OptionalNullable> getSigningKeys() { + if (signingKeys == null) { + return OptionalNullable.absent(); + } return signingKeys; } @@ -634,12 +654,44 @@ public Optional> getAsyncApprovalNo return asyncApprovalNotificationChannels; } + @JsonProperty("external_metadata_type") + public Optional getExternalMetadataType() { + return externalMetadataType; + } + + @JsonProperty("external_metadata_created_by") + public Optional getExternalMetadataCreatedBy() { + return externalMetadataCreatedBy; + } + + /** + * @return An alternate client identifier to be used during authorization flows. Only supports CIMD-based client identifiers. + */ + @JsonProperty("external_client_id") + public Optional getExternalClientId() { + return externalClientId; + } + + /** + * @return URL for the JSON Web Key Set (JWKS) containing the public keys used for private_key_jwt authentication. Only present for CIMD clients using private_key_jwt authentication. + */ + @JsonProperty("jwks_uri") + public Optional getJwksUri() { + return jwksUri; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("session_transfer") private OptionalNullable _getSessionTransfer() { return sessionTransfer; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("signing_keys") + private OptionalNullable> _getSigningKeys() { + return signingKeys; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("encryption_key") private OptionalNullable _getEncryptionKey() { @@ -741,7 +793,11 @@ private boolean equalTo(UpdateClientResponseContent other) { && tokenQuota.equals(other.tokenQuota) && expressConfiguration.equals(other.expressConfiguration) && resourceServerIdentifier.equals(other.resourceServerIdentifier) - && asyncApprovalNotificationChannels.equals(other.asyncApprovalNotificationChannels); + && asyncApprovalNotificationChannels.equals(other.asyncApprovalNotificationChannels) + && externalMetadataType.equals(other.externalMetadataType) + && externalMetadataCreatedBy.equals(other.externalMetadataCreatedBy) + && externalClientId.equals(other.externalClientId) + && jwksUri.equals(other.jwksUri); } @java.lang.Override @@ -799,7 +855,11 @@ public int hashCode() { this.tokenQuota, this.expressConfiguration, this.resourceServerIdentifier, - this.asyncApprovalNotificationChannels); + this.asyncApprovalNotificationChannels, + this.externalMetadataType, + this.externalMetadataCreatedBy, + this.externalClientId, + this.jwksUri); } @java.lang.Override @@ -853,7 +913,7 @@ public static final class Builder { private Optional jwtConfiguration = Optional.empty(); - private Optional> signingKeys = Optional.empty(); + private OptionalNullable> signingKeys = OptionalNullable.absent(); private OptionalNullable encryptionKey = OptionalNullable.absent(); @@ -920,6 +980,14 @@ public static final class Builder { private Optional> asyncApprovalNotificationChannels = Optional.empty(); + private Optional externalMetadataType = Optional.empty(); + + private Optional externalMetadataCreatedBy = Optional.empty(); + + private Optional externalClientId = Optional.empty(); + + private Optional jwksUri = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -979,6 +1047,10 @@ public Builder from(UpdateClientResponseContent other) { expressConfiguration(other.getExpressConfiguration()); resourceServerIdentifier(other.getResourceServerIdentifier()); asyncApprovalNotificationChannels(other.getAsyncApprovalNotificationChannels()); + externalMetadataType(other.getExternalMetadataType()); + externalMetadataCreatedBy(other.getExternalMetadataCreatedBy()); + externalClientId(other.getExternalClientId()); + jwksUri(other.getJwksUri()); return this; } @@ -1272,13 +1344,33 @@ public Builder jwtConfiguration(ClientJwtConfiguration jwtConfiguration) { } @JsonSetter(value = "signing_keys", nulls = Nulls.SKIP) - public Builder signingKeys(Optional> signingKeys) { + public Builder signingKeys(@Nullable OptionalNullable> signingKeys) { this.signingKeys = signingKeys; return this; } public Builder signingKeys(List signingKeys) { - this.signingKeys = Optional.ofNullable(signingKeys); + this.signingKeys = OptionalNullable.of(signingKeys); + return this; + } + + public Builder signingKeys(Optional> signingKeys) { + if (signingKeys.isPresent()) { + this.signingKeys = OptionalNullable.of(signingKeys.get()); + } else { + this.signingKeys = OptionalNullable.absent(); + } + return this; + } + + public Builder signingKeys(com.auth0.client.mgmt.core.Nullable> signingKeys) { + if (signingKeys.isNull()) { + this.signingKeys = OptionalNullable.ofNull(); + } else if (signingKeys.isEmpty()) { + this.signingKeys = OptionalNullable.absent(); + } else { + this.signingKeys = OptionalNullable.of(signingKeys.get()); + } return this; } @@ -1815,6 +1907,57 @@ public Builder asyncApprovalNotificationChannels( return this; } + @JsonSetter(value = "external_metadata_type", nulls = Nulls.SKIP) + public Builder externalMetadataType(Optional externalMetadataType) { + this.externalMetadataType = externalMetadataType; + return this; + } + + public Builder externalMetadataType(ClientExternalMetadataTypeEnum externalMetadataType) { + this.externalMetadataType = Optional.ofNullable(externalMetadataType); + return this; + } + + @JsonSetter(value = "external_metadata_created_by", nulls = Nulls.SKIP) + public Builder externalMetadataCreatedBy( + Optional externalMetadataCreatedBy) { + this.externalMetadataCreatedBy = externalMetadataCreatedBy; + return this; + } + + public Builder externalMetadataCreatedBy(ClientExternalMetadataCreatedByEnum externalMetadataCreatedBy) { + this.externalMetadataCreatedBy = Optional.ofNullable(externalMetadataCreatedBy); + return this; + } + + /** + *

An alternate client identifier to be used during authorization flows. Only supports CIMD-based client identifiers.

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

URL for the JSON Web Key Set (JWKS) containing the public keys used for private_key_jwt authentication. Only present for CIMD clients using private_key_jwt authentication.

+ */ + @JsonSetter(value = "jwks_uri", nulls = Nulls.SKIP) + public Builder jwksUri(Optional jwksUri) { + this.jwksUri = jwksUri; + return this; + } + + public Builder jwksUri(String jwksUri) { + this.jwksUri = Optional.ofNullable(jwksUri); + return this; + } + public UpdateClientResponseContent build() { return new UpdateClientResponseContent( clientId, @@ -1870,6 +2013,10 @@ public UpdateClientResponseContent build() { expressConfiguration, resourceServerIdentifier, asyncApprovalNotificationChannels, + externalMetadataType, + externalMetadataCreatedBy, + externalClientId, + jwksUri, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java index 9c82bf297..bb50f76b9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java @@ -26,7 +26,7 @@ public final class UpdateConnectionOptions { private final OptionalNullable validation; - private final Optional> nonPersistentAttrs; + private final OptionalNullable> nonPersistentAttrs; private final Optional> precedence; @@ -38,6 +38,8 @@ public final class UpdateConnectionOptions { private final Optional importMode; + private final OptionalNullable>> configuration; + private final Optional customScripts; private final OptionalNullable authenticationMethods; @@ -81,16 +83,19 @@ public final class UpdateConnectionOptions { private final OptionalNullable federatedConnectionsAccessTokens; + private final Optional passwordOptions; + private final Map additionalProperties; private UpdateConnectionOptions( OptionalNullable validation, - Optional> nonPersistentAttrs, + OptionalNullable> nonPersistentAttrs, Optional> precedence, Optional attributes, Optional enableScriptContext, Optional enabledDatabaseCustomization, Optional importMode, + OptionalNullable>> configuration, Optional customScripts, OptionalNullable authenticationMethods, OptionalNullable passkeyOptions, @@ -112,6 +117,7 @@ private UpdateConnectionOptions( Optional setUserRootAttributes, OptionalNullable gatewayAuthentication, OptionalNullable federatedConnectionsAccessTokens, + Optional passwordOptions, Map additionalProperties) { this.validation = validation; this.nonPersistentAttrs = nonPersistentAttrs; @@ -120,6 +126,7 @@ private UpdateConnectionOptions( this.enableScriptContext = enableScriptContext; this.enabledDatabaseCustomization = enabledDatabaseCustomization; this.importMode = importMode; + this.configuration = configuration; this.customScripts = customScripts; this.authenticationMethods = authenticationMethods; this.passkeyOptions = passkeyOptions; @@ -141,6 +148,7 @@ private UpdateConnectionOptions( this.setUserRootAttributes = setUserRootAttributes; this.gatewayAuthentication = gatewayAuthentication; this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.passwordOptions = passwordOptions; this.additionalProperties = additionalProperties; } @@ -156,8 +164,12 @@ public OptionalNullable getValidation() { /** * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("non_persistent_attrs") - public Optional> getNonPersistentAttrs() { + public OptionalNullable> getNonPersistentAttrs() { + if (nonPersistentAttrs == null) { + return OptionalNullable.absent(); + } return nonPersistentAttrs; } @@ -198,6 +210,18 @@ public Optional getImportMode() { return importMode; } + /** + * @return Stores encrypted string only configurations for connections + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("configuration") + public OptionalNullable>> getConfiguration() { + if (configuration == null) { + return OptionalNullable.absent(); + } + return configuration; + } + @JsonProperty("customScripts") public Optional getCustomScripts() { return customScripts; @@ -343,12 +367,29 @@ public OptionalNullable getFederated return federatedConnectionsAccessTokens; } + @JsonProperty("password_options") + public Optional getPasswordOptions() { + return passwordOptions; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("validation") private OptionalNullable _getValidation() { return validation; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("non_persistent_attrs") + private OptionalNullable> _getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("configuration") + private OptionalNullable>> _getConfiguration() { + return configuration; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("authentication_methods") private OptionalNullable _getAuthenticationMethods() { @@ -429,6 +470,7 @@ private boolean equalTo(UpdateConnectionOptions other) { && enableScriptContext.equals(other.enableScriptContext) && enabledDatabaseCustomization.equals(other.enabledDatabaseCustomization) && importMode.equals(other.importMode) + && configuration.equals(other.configuration) && customScripts.equals(other.customScripts) && authenticationMethods.equals(other.authenticationMethods) && passkeyOptions.equals(other.passkeyOptions) @@ -449,7 +491,8 @@ private boolean equalTo(UpdateConnectionOptions other) { && upstreamParams.equals(other.upstreamParams) && setUserRootAttributes.equals(other.setUserRootAttributes) && gatewayAuthentication.equals(other.gatewayAuthentication) - && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens); + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && passwordOptions.equals(other.passwordOptions); } @java.lang.Override @@ -462,6 +505,7 @@ public int hashCode() { this.enableScriptContext, this.enabledDatabaseCustomization, this.importMode, + this.configuration, this.customScripts, this.authenticationMethods, this.passkeyOptions, @@ -482,7 +526,8 @@ public int hashCode() { this.upstreamParams, this.setUserRootAttributes, this.gatewayAuthentication, - this.federatedConnectionsAccessTokens); + this.federatedConnectionsAccessTokens, + this.passwordOptions); } @java.lang.Override @@ -498,7 +543,7 @@ public static Builder builder() { public static final class Builder { private OptionalNullable validation = OptionalNullable.absent(); - private Optional> nonPersistentAttrs = Optional.empty(); + private OptionalNullable> nonPersistentAttrs = OptionalNullable.absent(); private Optional> precedence = Optional.empty(); @@ -510,6 +555,8 @@ public static final class Builder { private Optional importMode = Optional.empty(); + private OptionalNullable>> configuration = OptionalNullable.absent(); + private Optional customScripts = Optional.empty(); private OptionalNullable authenticationMethods = OptionalNullable.absent(); @@ -556,6 +603,8 @@ public static final class Builder { private OptionalNullable federatedConnectionsAccessTokens = OptionalNullable.absent(); + private Optional passwordOptions = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -569,6 +618,7 @@ public Builder from(UpdateConnectionOptions other) { enableScriptContext(other.getEnableScriptContext()); enabledDatabaseCustomization(other.getEnabledDatabaseCustomization()); importMode(other.getImportMode()); + configuration(other.getConfiguration()); customScripts(other.getCustomScripts()); authenticationMethods(other.getAuthenticationMethods()); passkeyOptions(other.getPasskeyOptions()); @@ -590,6 +640,7 @@ public Builder from(UpdateConnectionOptions other) { setUserRootAttributes(other.getSetUserRootAttributes()); gatewayAuthentication(other.getGatewayAuthentication()); federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + passwordOptions(other.getPasswordOptions()); return this; } @@ -628,13 +679,33 @@ public Builder validation(com.auth0.client.mgmt.core.NullableAn array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

*/ @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) - public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + public Builder nonPersistentAttrs(@Nullable OptionalNullable> nonPersistentAttrs) { this.nonPersistentAttrs = nonPersistentAttrs; return this; } public Builder nonPersistentAttrs(List nonPersistentAttrs) { - this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + this.nonPersistentAttrs = OptionalNullable.of(nonPersistentAttrs); + return this; + } + + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + if (nonPersistentAttrs.isPresent()) { + this.nonPersistentAttrs = OptionalNullable.of(nonPersistentAttrs.get()); + } else { + this.nonPersistentAttrs = OptionalNullable.absent(); + } + return this; + } + + public Builder nonPersistentAttrs(com.auth0.client.mgmt.core.Nullable> nonPersistentAttrs) { + if (nonPersistentAttrs.isNull()) { + this.nonPersistentAttrs = OptionalNullable.ofNull(); + } else if (nonPersistentAttrs.isEmpty()) { + this.nonPersistentAttrs = OptionalNullable.absent(); + } else { + this.nonPersistentAttrs = OptionalNullable.of(nonPersistentAttrs.get()); + } return this; } @@ -705,6 +776,41 @@ public Builder importMode(Boolean importMode) { return this; } + /** + *

Stores encrypted string only configurations for connections

+ */ + @JsonSetter(value = "configuration", nulls = Nulls.SKIP) + public Builder configuration(@Nullable OptionalNullable>> configuration) { + this.configuration = configuration; + return this; + } + + public Builder configuration(Map> configuration) { + this.configuration = OptionalNullable.of(configuration); + return this; + } + + public Builder configuration(Optional>> configuration) { + if (configuration.isPresent()) { + this.configuration = OptionalNullable.of(configuration.get()); + } else { + this.configuration = OptionalNullable.absent(); + } + return this; + } + + public Builder configuration( + com.auth0.client.mgmt.core.Nullable>> configuration) { + if (configuration.isNull()) { + this.configuration = OptionalNullable.ofNull(); + } else if (configuration.isEmpty()) { + this.configuration = OptionalNullable.absent(); + } else { + this.configuration = OptionalNullable.of(configuration.get()); + } + return this; + } + @JsonSetter(value = "customScripts", nulls = Nulls.SKIP) public Builder customScripts(Optional customScripts) { this.customScripts = customScripts; @@ -1164,6 +1270,17 @@ public Builder federatedConnectionsAccessTokens( return this; } + @JsonSetter(value = "password_options", nulls = Nulls.SKIP) + public Builder passwordOptions(Optional passwordOptions) { + this.passwordOptions = passwordOptions; + return this; + } + + public Builder passwordOptions(ConnectionPasswordOptions passwordOptions) { + this.passwordOptions = Optional.ofNullable(passwordOptions); + return this; + } + public UpdateConnectionOptions build() { return new UpdateConnectionOptions( validation, @@ -1173,6 +1290,7 @@ public UpdateConnectionOptions build() { enableScriptContext, enabledDatabaseCustomization, importMode, + configuration, customScripts, authenticationMethods, passkeyOptions, @@ -1194,6 +1312,7 @@ public UpdateConnectionOptions build() { setUserRootAttributes, gatewayAuthentication, federatedConnectionsAccessTokens, + passwordOptions, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java index 96d0624d3..c528a7db0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java @@ -28,7 +28,7 @@ public final class UpdateConnectionRequestContent { private final OptionalNullable options; - private final Optional> enabledClients; + private final OptionalNullable> enabledClients; private final Optional isDomainConnection; @@ -47,7 +47,7 @@ public final class UpdateConnectionRequestContent { private UpdateConnectionRequestContent( Optional displayName, OptionalNullable options, - Optional> enabledClients, + OptionalNullable> enabledClients, Optional isDomainConnection, Optional showAsButton, Optional> realms, @@ -87,8 +87,12 @@ public OptionalNullable getOptions() { /** * @return DEPRECATED property. Use the PATCH /v2/connections/{id}/clients endpoint to enable or disable the connection for any clients. */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("enabled_clients") - public Optional> getEnabledClients() { + public OptionalNullable> getEnabledClients() { + if (enabledClients == null) { + return OptionalNullable.absent(); + } return enabledClients; } @@ -137,6 +141,12 @@ private OptionalNullable _getOptions() { return options; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("enabled_clients") + private OptionalNullable> _getEnabledClients() { + return enabledClients; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -189,7 +199,7 @@ public static final class Builder { private OptionalNullable options = OptionalNullable.absent(); - private Optional> enabledClients = Optional.empty(); + private OptionalNullable> enabledClients = OptionalNullable.absent(); private Optional isDomainConnection = Optional.empty(); @@ -270,13 +280,33 @@ public Builder options(com.auth0.client.mgmt.core.NullableDEPRECATED property. Use the PATCH /v2/connections/{id}/clients endpoint to enable or disable the connection for any clients.

*/ @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) - public Builder enabledClients(Optional> enabledClients) { + public Builder enabledClients(@Nullable OptionalNullable> enabledClients) { this.enabledClients = enabledClients; return this; } public Builder enabledClients(List enabledClients) { - this.enabledClients = Optional.ofNullable(enabledClients); + this.enabledClients = OptionalNullable.of(enabledClients); + return this; + } + + public Builder enabledClients(Optional> enabledClients) { + if (enabledClients.isPresent()) { + this.enabledClients = OptionalNullable.of(enabledClients.get()); + } else { + this.enabledClients = OptionalNullable.absent(); + } + return this; + } + + public Builder enabledClients(com.auth0.client.mgmt.core.Nullable> enabledClients) { + if (enabledClients.isNull()) { + this.enabledClients = OptionalNullable.ofNull(); + } else if (enabledClients.isEmpty()) { + this.enabledClients = OptionalNullable.absent(); + } else { + this.enabledClients = OptionalNullable.of(enabledClients.get()); + } return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAol.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAol.java deleted file mode 100644 index b605ec4a1..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAol.java +++ /dev/null @@ -1,211 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.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 displayName; - - private final Optional> enabledClients; - - private final Optional isDomainConnection; - - private final Optional>> metadata; - - private final Optional options; - - private final Map additionalProperties; - - private UpdateConnectionRequestContentAol( - Optional displayName, - Optional> enabledClients, - Optional isDomainConnection, - Optional>> metadata, - Optional options, - Map additionalProperties) { - this.displayName = displayName; - this.enabledClients = enabledClients; - this.isDomainConnection = isDomainConnection; - this.metadata = metadata; - this.options = options; - this.additionalProperties = additionalProperties; - } - - @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 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.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 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) { - displayName(other.getDisplayName()); - enabledClients(other.getEnabledClients()); - isDomainConnection(other.getIsDomainConnection()); - metadata(other.getMetadata()); - options(other.getOptions()); - 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(ConnectionOptionsAol options) { - this.options = Optional.ofNullable(options); - return this; - } - - public UpdateConnectionRequestContentAol build() { - return new UpdateConnectionRequestContentAol( - displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); - } - - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentMiicard.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentMiicard.java deleted file mode 100644 index 158397f8f..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentMiicard.java +++ /dev/null @@ -1,212 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.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 displayName; - - private final Optional> enabledClients; - - private final Optional isDomainConnection; - - private final Optional>> metadata; - - private final Optional options; - - private final Map additionalProperties; - - private UpdateConnectionRequestContentMiicard( - Optional displayName, - Optional> enabledClients, - Optional isDomainConnection, - Optional>> metadata, - Optional options, - Map additionalProperties) { - this.displayName = displayName; - this.enabledClients = enabledClients; - this.isDomainConnection = isDomainConnection; - this.metadata = metadata; - this.options = options; - this.additionalProperties = additionalProperties; - } - - @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 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.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 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) { - displayName(other.getDisplayName()); - enabledClients(other.getEnabledClients()); - isDomainConnection(other.getIsDomainConnection()); - metadata(other.getMetadata()); - options(other.getOptions()); - 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(ConnectionOptionsMiicard options) { - this.options = Optional.ofNullable(options); - return this; - } - - public UpdateConnectionRequestContentMiicard build() { - return new UpdateConnectionRequestContentMiicard( - displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); - } - - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentRenren.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentRenren.java deleted file mode 100644 index 147b1f464..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentRenren.java +++ /dev/null @@ -1,212 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.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 displayName; - - private final Optional> enabledClients; - - private final Optional isDomainConnection; - - private final Optional>> metadata; - - private final Optional options; - - private final Map additionalProperties; - - private UpdateConnectionRequestContentRenren( - Optional displayName, - Optional> enabledClients, - Optional isDomainConnection, - Optional>> metadata, - Optional options, - Map additionalProperties) { - this.displayName = displayName; - this.enabledClients = enabledClients; - this.isDomainConnection = isDomainConnection; - this.metadata = metadata; - this.options = options; - this.additionalProperties = additionalProperties; - } - - @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 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.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 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) { - displayName(other.getDisplayName()); - enabledClients(other.getEnabledClients()); - isDomainConnection(other.getIsDomainConnection()); - metadata(other.getMetadata()); - options(other.getOptions()); - 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(ConnectionOptionsRenren options) { - this.options = Optional.ofNullable(options); - return this; - } - - public UpdateConnectionRequestContentRenren build() { - return new UpdateConnectionRequestContentRenren( - displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); - } - - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYammer.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYammer.java deleted file mode 100644 index 498a645e9..000000000 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYammer.java +++ /dev/null @@ -1,212 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -package com.auth0.client.mgmt.types; - -import com.auth0.client.mgmt.core.ObjectMappers; -import com.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 displayName; - - private final Optional> enabledClients; - - private final Optional isDomainConnection; - - private final Optional>> metadata; - - private final Optional options; - - private final Map additionalProperties; - - private UpdateConnectionRequestContentYammer( - Optional displayName, - Optional> enabledClients, - Optional isDomainConnection, - Optional>> metadata, - Optional options, - Map additionalProperties) { - this.displayName = displayName; - this.enabledClients = enabledClients; - this.isDomainConnection = isDomainConnection; - this.metadata = metadata; - this.options = options; - this.additionalProperties = additionalProperties; - } - - @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 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.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 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) { - displayName(other.getDisplayName()); - enabledClients(other.getEnabledClients()); - isDomainConnection(other.getIsDomainConnection()); - metadata(other.getMetadata()); - options(other.getOptions()); - 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(ConnectionOptionsYammer options) { - this.options = Optional.ofNullable(options); - return this; - } - - public UpdateConnectionRequestContentYammer build() { - return new UpdateConnectionRequestContentYammer( - displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); - } - - public Builder additionalProperty(String key, Object value) { - this.additionalProperties.put(key, value); - return this; - } - - public Builder additionalProperties(Map additionalProperties) { - this.additionalProperties.putAll(additionalProperties); - return this; - } - } -} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCanonicalDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCanonicalDomainResponseContent.java new file mode 100644 index 000000000..97fdeb39b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCanonicalDomainResponseContent.java @@ -0,0 +1,130 @@ +/** + * 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.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateDefaultCanonicalDomainResponseContent.Builder.class) +public final class UpdateDefaultCanonicalDomainResponseContent { + private final String domain; + + private final Map additionalProperties; + + private UpdateDefaultCanonicalDomainResponseContent(String domain, Map additionalProperties) { + this.domain = domain; + this.additionalProperties = additionalProperties; + } + + /** + * @return Domain name. + */ + @JsonProperty("domain") + public String getDomain() { + return domain; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateDefaultCanonicalDomainResponseContent + && equalTo((UpdateDefaultCanonicalDomainResponseContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateDefaultCanonicalDomainResponseContent other) { + return domain.equals(other.domain); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.domain); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static DomainStage builder() { + return new Builder(); + } + + public interface DomainStage { + /** + *

Domain name.

+ */ + _FinalStage domain(@NotNull String domain); + + Builder from(UpdateDefaultCanonicalDomainResponseContent other); + } + + public interface _FinalStage { + UpdateDefaultCanonicalDomainResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements DomainStage, _FinalStage { + private String domain; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(UpdateDefaultCanonicalDomainResponseContent other) { + domain(other.getDomain()); + return this; + } + + /** + *

Domain name.

+ *

Domain name.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("domain") + public _FinalStage domain(@NotNull String domain) { + this.domain = Objects.requireNonNull(domain, "domain must not be null"); + return this; + } + + @java.lang.Override + public UpdateDefaultCanonicalDomainResponseContent build() { + return new UpdateDefaultCanonicalDomainResponseContent(domain, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCustomDomainResponseContent.java new file mode 100644 index 000000000..4779ecd94 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultCustomDomainResponseContent.java @@ -0,0 +1,632 @@ +/** + * 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.NotNull; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UpdateDefaultCustomDomainResponseContent.Builder.class) +public final class UpdateDefaultCustomDomainResponseContent { + private final String customDomainId; + + private final String domain; + + private final boolean primary; + + private final Optional isDefault; + + private final CustomDomainStatusFilterEnum status; + + private final CustomDomainTypeEnum type; + + private final Optional originDomainName; + + private final Optional verification; + + private final OptionalNullable customClientIpHeader; + + private final Optional tlsPolicy; + + private final Optional>> domainMetadata; + + private final Optional certificate; + + private final Optional relyingPartyIdentifier; + + private final Map additionalProperties; + + private UpdateDefaultCustomDomainResponseContent( + String customDomainId, + String domain, + boolean primary, + Optional isDefault, + CustomDomainStatusFilterEnum status, + CustomDomainTypeEnum type, + Optional originDomainName, + Optional verification, + OptionalNullable customClientIpHeader, + Optional tlsPolicy, + Optional>> domainMetadata, + Optional certificate, + Optional relyingPartyIdentifier, + Map additionalProperties) { + this.customDomainId = customDomainId; + this.domain = domain; + this.primary = primary; + this.isDefault = isDefault; + this.status = status; + this.type = type; + this.originDomainName = originDomainName; + this.verification = verification; + this.customClientIpHeader = customClientIpHeader; + this.tlsPolicy = tlsPolicy; + this.domainMetadata = domainMetadata; + this.certificate = certificate; + this.relyingPartyIdentifier = relyingPartyIdentifier; + this.additionalProperties = additionalProperties; + } + + /** + * @return ID of the custom domain. + */ + @JsonProperty("custom_domain_id") + public String getCustomDomainId() { + return customDomainId; + } + + /** + * @return Domain name. + */ + @JsonProperty("domain") + public String getDomain() { + return domain; + } + + /** + * @return Whether this is a primary domain (true) or not (false). + */ + @JsonProperty("primary") + 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; + } + + @JsonProperty("type") + public CustomDomainTypeEnum getType() { + return type; + } + + /** + * @return Intermediate address. + */ + @JsonProperty("origin_domain_name") + public Optional getOriginDomainName() { + return originDomainName; + } + + @JsonProperty("verification") + public Optional getVerification() { + return verification; + } + + /** + * @return The HTTP header to fetch the client's IP address + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("custom_client_ip_header") + public OptionalNullable getCustomClientIpHeader() { + if (customClientIpHeader == null) { + return OptionalNullable.absent(); + } + return customClientIpHeader; + } + + /** + * @return The TLS version policy + */ + @JsonProperty("tls_policy") + public Optional getTlsPolicy() { + return tlsPolicy; + } + + @JsonProperty("domain_metadata") + public Optional>> getDomainMetadata() { + return domainMetadata; + } + + @JsonProperty("certificate") + public Optional getCertificate() { + return certificate; + } + + /** + * @return Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not present, the full domain will be used. + */ + @JsonProperty("relying_party_identifier") + public Optional getRelyingPartyIdentifier() { + return relyingPartyIdentifier; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("custom_client_ip_header") + private OptionalNullable _getCustomClientIpHeader() { + return customClientIpHeader; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateDefaultCustomDomainResponseContent + && equalTo((UpdateDefaultCustomDomainResponseContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UpdateDefaultCustomDomainResponseContent 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) + && verification.equals(other.verification) + && customClientIpHeader.equals(other.customClientIpHeader) + && tlsPolicy.equals(other.tlsPolicy) + && domainMetadata.equals(other.domainMetadata) + && certificate.equals(other.certificate) + && relyingPartyIdentifier.equals(other.relyingPartyIdentifier); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.customDomainId, + this.domain, + this.primary, + this.isDefault, + this.status, + this.type, + this.originDomainName, + this.verification, + this.customClientIpHeader, + this.tlsPolicy, + this.domainMetadata, + this.certificate, + this.relyingPartyIdentifier); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static CustomDomainIdStage builder() { + return new Builder(); + } + + public interface CustomDomainIdStage { + /** + *

ID of the custom domain.

+ */ + DomainStage customDomainId(@NotNull String customDomainId); + + Builder from(UpdateDefaultCustomDomainResponseContent other); + } + + public interface DomainStage { + /** + *

Domain name.

+ */ + PrimaryStage domain(@NotNull String domain); + } + + public interface PrimaryStage { + /** + *

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

+ */ + StatusStage primary(boolean primary); + } + + public interface StatusStage { + TypeStage status(@NotNull CustomDomainStatusFilterEnum status); + } + + public interface TypeStage { + _FinalStage type(@NotNull CustomDomainTypeEnum type); + } + + public interface _FinalStage { + UpdateDefaultCustomDomainResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

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

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

Intermediate address.

+ */ + _FinalStage originDomainName(Optional originDomainName); + + _FinalStage originDomainName(String originDomainName); + + _FinalStage verification(Optional verification); + + _FinalStage verification(DomainVerification verification); + + /** + *

The HTTP header to fetch the client's IP address

+ */ + _FinalStage customClientIpHeader(@Nullable OptionalNullable customClientIpHeader); + + _FinalStage customClientIpHeader(String customClientIpHeader); + + _FinalStage customClientIpHeader(Optional customClientIpHeader); + + _FinalStage customClientIpHeader(com.auth0.client.mgmt.core.Nullable customClientIpHeader); + + /** + *

The TLS version policy

+ */ + _FinalStage tlsPolicy(Optional tlsPolicy); + + _FinalStage tlsPolicy(String tlsPolicy); + + _FinalStage domainMetadata(Optional>> domainMetadata); + + _FinalStage domainMetadata(Map> domainMetadata); + + _FinalStage certificate(Optional certificate); + + _FinalStage certificate(DomainCertificate certificate); + + /** + *

Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not present, the full domain will be used.

+ */ + _FinalStage relyingPartyIdentifier(Optional relyingPartyIdentifier); + + _FinalStage relyingPartyIdentifier(String relyingPartyIdentifier); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements CustomDomainIdStage, DomainStage, PrimaryStage, StatusStage, TypeStage, _FinalStage { + private String customDomainId; + + private String domain; + + private boolean primary; + + private CustomDomainStatusFilterEnum status; + + private CustomDomainTypeEnum type; + + private Optional relyingPartyIdentifier = Optional.empty(); + + private Optional certificate = Optional.empty(); + + private Optional>> domainMetadata = Optional.empty(); + + private Optional tlsPolicy = Optional.empty(); + + private OptionalNullable customClientIpHeader = OptionalNullable.absent(); + + private Optional verification = Optional.empty(); + + private Optional originDomainName = Optional.empty(); + + private Optional isDefault = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(UpdateDefaultCustomDomainResponseContent other) { + customDomainId(other.getCustomDomainId()); + domain(other.getDomain()); + primary(other.getPrimary()); + isDefault(other.getIsDefault()); + status(other.getStatus()); + type(other.getType()); + originDomainName(other.getOriginDomainName()); + verification(other.getVerification()); + customClientIpHeader(other.getCustomClientIpHeader()); + tlsPolicy(other.getTlsPolicy()); + domainMetadata(other.getDomainMetadata()); + certificate(other.getCertificate()); + relyingPartyIdentifier(other.getRelyingPartyIdentifier()); + return this; + } + + /** + *

ID of the custom domain.

+ *

ID of the custom domain.

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

Domain name.

+ *

Domain name.

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

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

+ *

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

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("primary") + public StatusStage primary(boolean primary) { + this.primary = primary; + return this; + } + + @java.lang.Override + @JsonSetter("status") + public TypeStage status(@NotNull CustomDomainStatusFilterEnum status) { + this.status = Objects.requireNonNull(status, "status must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("type") + public _FinalStage type(@NotNull CustomDomainTypeEnum type) { + this.type = Objects.requireNonNull(type, "type must not be null"); + return this; + } + + /** + *

Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not present, the full domain will be used.

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

Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not present, the full domain will be used.

+ */ + @java.lang.Override + @JsonSetter(value = "relying_party_identifier", nulls = Nulls.SKIP) + public _FinalStage relyingPartyIdentifier(Optional relyingPartyIdentifier) { + this.relyingPartyIdentifier = relyingPartyIdentifier; + return this; + } + + @java.lang.Override + public _FinalStage certificate(DomainCertificate certificate) { + this.certificate = Optional.ofNullable(certificate); + return this; + } + + @java.lang.Override + @JsonSetter(value = "certificate", nulls = Nulls.SKIP) + public _FinalStage certificate(Optional certificate) { + this.certificate = certificate; + return this; + } + + @java.lang.Override + public _FinalStage domainMetadata(Map> domainMetadata) { + this.domainMetadata = Optional.ofNullable(domainMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "domain_metadata", nulls = Nulls.SKIP) + public _FinalStage domainMetadata(Optional>> domainMetadata) { + this.domainMetadata = domainMetadata; + return this; + } + + /** + *

The TLS version policy

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

The TLS version policy

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

The HTTP header to fetch the client's IP address

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

The HTTP header to fetch the client's IP address

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

The HTTP header to fetch the client's IP address

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

The HTTP header to fetch the client's IP address

+ */ + @java.lang.Override + @JsonSetter(value = "custom_client_ip_header", nulls = Nulls.SKIP) + public _FinalStage customClientIpHeader(@Nullable OptionalNullable customClientIpHeader) { + this.customClientIpHeader = customClientIpHeader; + return this; + } + + @java.lang.Override + public _FinalStage verification(DomainVerification verification) { + this.verification = Optional.ofNullable(verification); + return this; + } + + @java.lang.Override + @JsonSetter(value = "verification", nulls = Nulls.SKIP) + public _FinalStage verification(Optional verification) { + this.verification = verification; + return this; + } + + /** + *

Intermediate address.

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

Intermediate address.

+ */ + @java.lang.Override + @JsonSetter(value = "origin_domain_name", nulls = Nulls.SKIP) + public _FinalStage originDomainName(Optional originDomainName) { + this.originDomainName = 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 UpdateDefaultCustomDomainResponseContent build() { + return new UpdateDefaultCustomDomainResponseContent( + customDomainId, + domain, + primary, + isDefault, + status, + type, + originDomainName, + verification, + customClientIpHeader, + tlsPolicy, + domainMetadata, + certificate, + relyingPartyIdentifier, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultDomainResponseContent.java new file mode 100644 index 000000000..ab22c4231 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateDefaultDomainResponseContent.java @@ -0,0 +1,99 @@ +/** + * 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.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = UpdateDefaultDomainResponseContent.Deserializer.class) +public final class UpdateDefaultDomainResponseContent { + private final Object value; + + private final int type; + + private UpdateDefaultDomainResponseContent(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((UpdateDefaultCustomDomainResponseContent) this.value); + } else if (this.type == 1) { + return visitor.visit((UpdateDefaultCanonicalDomainResponseContent) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UpdateDefaultDomainResponseContent + && equalTo((UpdateDefaultDomainResponseContent) other); + } + + private boolean equalTo(UpdateDefaultDomainResponseContent other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static UpdateDefaultDomainResponseContent of(UpdateDefaultCustomDomainResponseContent value) { + return new UpdateDefaultDomainResponseContent(value, 0); + } + + public static UpdateDefaultDomainResponseContent of(UpdateDefaultCanonicalDomainResponseContent value) { + return new UpdateDefaultDomainResponseContent(value, 1); + } + + public interface Visitor { + T visit(UpdateDefaultCustomDomainResponseContent value); + + T visit(UpdateDefaultCanonicalDomainResponseContent value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(UpdateDefaultDomainResponseContent.class); + } + + @java.lang.Override + public UpdateDefaultDomainResponseContent deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of( + ObjectMappers.JSON_MAPPER.convertValue(value, UpdateDefaultCustomDomainResponseContent.class)); + } catch (RuntimeException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, UpdateDefaultCanonicalDomainResponseContent.class)); + } catch (RuntimeException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningRequestContent.java index 702afacc5..7190a4cd3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningRequestContent.java @@ -25,14 +25,18 @@ public final class UpdateDirectoryProvisioningRequestContent { private final Optional synchronizeAutomatically; + private final Optional synchronizeGroups; + private final Map additionalProperties; private UpdateDirectoryProvisioningRequestContent( Optional> mapping, Optional synchronizeAutomatically, + Optional synchronizeGroups, Map additionalProperties) { this.mapping = mapping; this.synchronizeAutomatically = synchronizeAutomatically; + this.synchronizeGroups = synchronizeGroups; this.additionalProperties = additionalProperties; } @@ -52,6 +56,11 @@ public Optional getSynchronizeAutomatically() { return synchronizeAutomatically; } + @JsonProperty("synchronize_groups") + public Optional getSynchronizeGroups() { + return synchronizeGroups; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -65,12 +74,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(UpdateDirectoryProvisioningRequestContent other) { - return mapping.equals(other.mapping) && synchronizeAutomatically.equals(other.synchronizeAutomatically); + return mapping.equals(other.mapping) + && synchronizeAutomatically.equals(other.synchronizeAutomatically) + && synchronizeGroups.equals(other.synchronizeGroups); } @java.lang.Override public int hashCode() { - return Objects.hash(this.mapping, this.synchronizeAutomatically); + return Objects.hash(this.mapping, this.synchronizeAutomatically, this.synchronizeGroups); } @java.lang.Override @@ -88,6 +99,8 @@ public static final class Builder { private Optional synchronizeAutomatically = Optional.empty(); + private Optional synchronizeGroups = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -96,6 +109,7 @@ private Builder() {} public Builder from(UpdateDirectoryProvisioningRequestContent other) { mapping(other.getMapping()); synchronizeAutomatically(other.getSynchronizeAutomatically()); + synchronizeGroups(other.getSynchronizeGroups()); return this; } @@ -127,9 +141,20 @@ public Builder synchronizeAutomatically(Boolean synchronizeAutomatically) { return this; } + @JsonSetter(value = "synchronize_groups", nulls = Nulls.SKIP) + public Builder synchronizeGroups(Optional synchronizeGroups) { + this.synchronizeGroups = synchronizeGroups; + return this; + } + + public Builder synchronizeGroups(String synchronizeGroups) { + this.synchronizeGroups = Optional.ofNullable(synchronizeGroups); + return this; + } + public UpdateDirectoryProvisioningRequestContent build() { return new UpdateDirectoryProvisioningRequestContent( - mapping, synchronizeAutomatically, additionalProperties); + mapping, synchronizeAutomatically, synchronizeGroups, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java index 26991d9ab..dd9ecff07 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java @@ -34,6 +34,8 @@ public final class UpdateDirectoryProvisioningResponseContent { private final boolean synchronizeAutomatically; + private final Optional synchronizeGroups; + private final OffsetDateTime createdAt; private final OffsetDateTime updatedAt; @@ -52,6 +54,7 @@ private UpdateDirectoryProvisioningResponseContent( String strategy, List mapping, boolean synchronizeAutomatically, + Optional synchronizeGroups, OffsetDateTime createdAt, OffsetDateTime updatedAt, Optional lastSynchronizationAt, @@ -63,6 +66,7 @@ private UpdateDirectoryProvisioningResponseContent( this.strategy = strategy; this.mapping = mapping; this.synchronizeAutomatically = synchronizeAutomatically; + this.synchronizeGroups = synchronizeGroups; this.createdAt = createdAt; this.updatedAt = updatedAt; this.lastSynchronizationAt = lastSynchronizationAt; @@ -111,6 +115,11 @@ public boolean getSynchronizeAutomatically() { return synchronizeAutomatically; } + @JsonProperty("synchronize_groups") + public Optional getSynchronizeGroups() { + return synchronizeGroups; + } + /** * @return The timestamp at which the directory provisioning configuration was created */ @@ -169,6 +178,7 @@ private boolean equalTo(UpdateDirectoryProvisioningResponseContent other) { && strategy.equals(other.strategy) && mapping.equals(other.mapping) && synchronizeAutomatically == other.synchronizeAutomatically + && synchronizeGroups.equals(other.synchronizeGroups) && createdAt.equals(other.createdAt) && updatedAt.equals(other.updatedAt) && lastSynchronizationAt.equals(other.lastSynchronizationAt) @@ -184,6 +194,7 @@ public int hashCode() { this.strategy, this.mapping, this.synchronizeAutomatically, + this.synchronizeGroups, this.createdAt, this.updatedAt, this.lastSynchronizationAt, @@ -260,6 +271,10 @@ public interface _FinalStage { _FinalStage addAllMapping(List mapping); + _FinalStage synchronizeGroups(Optional synchronizeGroups); + + _FinalStage synchronizeGroups(String synchronizeGroups); + /** *

The timestamp at which the connection was last synchronized

*/ @@ -309,6 +324,8 @@ public static final class Builder private Optional lastSynchronizationAt = Optional.empty(); + private Optional synchronizeGroups = Optional.empty(); + private List mapping = new ArrayList<>(); @JsonAnySetter @@ -323,6 +340,7 @@ public Builder from(UpdateDirectoryProvisioningResponseContent other) { strategy(other.getStrategy()); mapping(other.getMapping()); synchronizeAutomatically(other.getSynchronizeAutomatically()); + synchronizeGroups(other.getSynchronizeGroups()); createdAt(other.getCreatedAt()); updatedAt(other.getUpdatedAt()); lastSynchronizationAt(other.getLastSynchronizationAt()); @@ -463,6 +481,19 @@ public _FinalStage lastSynchronizationAt(Optional lastSynchroniz return this; } + @java.lang.Override + public _FinalStage synchronizeGroups(String synchronizeGroups) { + this.synchronizeGroups = Optional.ofNullable(synchronizeGroups); + return this; + } + + @java.lang.Override + @JsonSetter(value = "synchronize_groups", nulls = Nulls.SKIP) + public _FinalStage synchronizeGroups(Optional synchronizeGroups) { + this.synchronizeGroups = synchronizeGroups; + return this; + } + /** *

The mapping between Auth0 and IDP user attributes

* @return Reference to {@code this} so that method calls can be chained together. @@ -506,6 +537,7 @@ public UpdateDirectoryProvisioningResponseContent build() { strategy, mapping, synchronizeAutomatically, + synchronizeGroups, createdAt, updatedAt, lastSynchronizationAt, diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowRequestContent.java index 7ad109664..2c3e74dc5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowRequestContent.java @@ -3,7 +3,9 @@ */ package com.auth0.client.mgmt.types; +import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -17,18 +19,21 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.Nullable; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateFlowRequestContent.Builder.class) public final class UpdateFlowRequestContent { private final Optional name; - private final Optional> actions; + private final OptionalNullable> actions; private final Map additionalProperties; private UpdateFlowRequestContent( - Optional name, Optional> actions, Map additionalProperties) { + Optional name, + OptionalNullable> actions, + Map additionalProperties) { this.name = name; this.actions = actions; this.additionalProperties = additionalProperties; @@ -39,8 +44,18 @@ public Optional getName() { return name; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("actions") - public Optional> getActions() { + public OptionalNullable> getActions() { + if (actions == null) { + return OptionalNullable.absent(); + } + return actions; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("actions") + private OptionalNullable> _getActions() { return actions; } @@ -77,7 +92,7 @@ public static Builder builder() { public static final class Builder { private Optional name = Optional.empty(); - private Optional> actions = Optional.empty(); + private OptionalNullable> actions = OptionalNullable.absent(); @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -102,13 +117,33 @@ public Builder name(String name) { } @JsonSetter(value = "actions", nulls = Nulls.SKIP) - public Builder actions(Optional> actions) { + public Builder actions(@Nullable OptionalNullable> actions) { this.actions = actions; return this; } public Builder actions(List actions) { - this.actions = Optional.ofNullable(actions); + this.actions = OptionalNullable.of(actions); + return this; + } + + public Builder actions(Optional> actions) { + if (actions.isPresent()) { + this.actions = OptionalNullable.of(actions.get()); + } else { + this.actions = OptionalNullable.absent(); + } + return this; + } + + public Builder actions(com.auth0.client.mgmt.core.Nullable> actions) { + if (actions.isNull()) { + this.actions = OptionalNullable.ofNull(); + } else if (actions.isEmpty()) { + this.actions = OptionalNullable.absent(); + } else { + this.actions = OptionalNullable.of(actions.get()); + } return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerRequestContent.java index 034207858..e611a7e6c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerRequestContent.java @@ -36,6 +36,8 @@ public final class UpdateResourceServerRequestContent { private final Optional allowOfflineAccess; + private final Optional allowOnlineAccess; + private final Optional tokenLifetime; private final Optional tokenDialect; @@ -46,7 +48,7 @@ public final class UpdateResourceServerRequestContent { private final OptionalNullable consentPolicy; - private final Optional> authorizationDetails; + private final OptionalNullable> authorizationDetails; private final OptionalNullable proofOfPossession; @@ -61,12 +63,13 @@ private UpdateResourceServerRequestContent( Optional signingSecret, Optional skipConsentForVerifiableFirstPartyClients, Optional allowOfflineAccess, + Optional allowOnlineAccess, Optional tokenLifetime, Optional tokenDialect, Optional enforcePolicies, OptionalNullable tokenEncryption, OptionalNullable consentPolicy, - Optional> authorizationDetails, + OptionalNullable> authorizationDetails, OptionalNullable proofOfPossession, Optional subjectTypeAuthorization, Map additionalProperties) { @@ -76,6 +79,7 @@ private UpdateResourceServerRequestContent( this.signingSecret = signingSecret; this.skipConsentForVerifiableFirstPartyClients = skipConsentForVerifiableFirstPartyClients; this.allowOfflineAccess = allowOfflineAccess; + this.allowOnlineAccess = allowOnlineAccess; this.tokenLifetime = tokenLifetime; this.tokenDialect = tokenDialect; this.enforcePolicies = enforcePolicies; @@ -132,6 +136,14 @@ public Optional getAllowOfflineAccess() { return allowOfflineAccess; } + /** + * @return Whether Online Refresh Tokens can be issued for this API (true) or not (false). + */ + @JsonProperty("allow_online_access") + public Optional getAllowOnlineAccess() { + return allowOnlineAccess; + } + /** * @return Expiration value (in seconds) for access tokens issued for this API from the token endpoint. */ @@ -171,8 +183,12 @@ public OptionalNullable getConsentPolicy() { return consentPolicy; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("authorization_details") - public Optional> getAuthorizationDetails() { + public OptionalNullable> getAuthorizationDetails() { + if (authorizationDetails == null) { + return OptionalNullable.absent(); + } return authorizationDetails; } @@ -202,6 +218,12 @@ private OptionalNullable _getConsentPolicy() { return consentPolicy; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("authorization_details") + private OptionalNullable> _getAuthorizationDetails() { + return authorizationDetails; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("proof_of_possession") private OptionalNullable _getProofOfPossession() { @@ -227,6 +249,7 @@ private boolean equalTo(UpdateResourceServerRequestContent other) { && signingSecret.equals(other.signingSecret) && skipConsentForVerifiableFirstPartyClients.equals(other.skipConsentForVerifiableFirstPartyClients) && allowOfflineAccess.equals(other.allowOfflineAccess) + && allowOnlineAccess.equals(other.allowOnlineAccess) && tokenLifetime.equals(other.tokenLifetime) && tokenDialect.equals(other.tokenDialect) && enforcePolicies.equals(other.enforcePolicies) @@ -246,6 +269,7 @@ public int hashCode() { this.signingSecret, this.skipConsentForVerifiableFirstPartyClients, this.allowOfflineAccess, + this.allowOnlineAccess, this.tokenLifetime, this.tokenDialect, this.enforcePolicies, @@ -279,6 +303,8 @@ public static final class Builder { private Optional allowOfflineAccess = Optional.empty(); + private Optional allowOnlineAccess = Optional.empty(); + private Optional tokenLifetime = Optional.empty(); private Optional tokenDialect = Optional.empty(); @@ -289,7 +315,7 @@ public static final class Builder { private OptionalNullable consentPolicy = OptionalNullable.absent(); - private Optional> authorizationDetails = Optional.empty(); + private OptionalNullable> authorizationDetails = OptionalNullable.absent(); private OptionalNullable proofOfPossession = OptionalNullable.absent(); @@ -307,6 +333,7 @@ public Builder from(UpdateResourceServerRequestContent other) { signingSecret(other.getSigningSecret()); skipConsentForVerifiableFirstPartyClients(other.getSkipConsentForVerifiableFirstPartyClients()); allowOfflineAccess(other.getAllowOfflineAccess()); + allowOnlineAccess(other.getAllowOnlineAccess()); tokenLifetime(other.getTokenLifetime()); tokenDialect(other.getTokenDialect()); enforcePolicies(other.getEnforcePolicies()); @@ -401,6 +428,20 @@ public Builder allowOfflineAccess(Boolean allowOfflineAccess) { return this; } + /** + *

Whether Online Refresh Tokens can be issued for this API (true) or not (false).

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

Expiration value (in seconds) for access tokens issued for this API from the token endpoint.

*/ @@ -505,13 +546,33 @@ public Builder consentPolicy( } @JsonSetter(value = "authorization_details", nulls = Nulls.SKIP) - public Builder authorizationDetails(Optional> authorizationDetails) { + public Builder authorizationDetails(@Nullable OptionalNullable> authorizationDetails) { this.authorizationDetails = authorizationDetails; return this; } public Builder authorizationDetails(List authorizationDetails) { - this.authorizationDetails = Optional.ofNullable(authorizationDetails); + this.authorizationDetails = OptionalNullable.of(authorizationDetails); + return this; + } + + public Builder authorizationDetails(Optional> authorizationDetails) { + if (authorizationDetails.isPresent()) { + this.authorizationDetails = OptionalNullable.of(authorizationDetails.get()); + } else { + this.authorizationDetails = OptionalNullable.absent(); + } + return this; + } + + public Builder authorizationDetails(com.auth0.client.mgmt.core.Nullable> authorizationDetails) { + if (authorizationDetails.isNull()) { + this.authorizationDetails = OptionalNullable.ofNull(); + } else if (authorizationDetails.isEmpty()) { + this.authorizationDetails = OptionalNullable.absent(); + } else { + this.authorizationDetails = OptionalNullable.of(authorizationDetails.get()); + } return this; } @@ -568,6 +629,7 @@ public UpdateResourceServerRequestContent build() { signingSecret, skipConsentForVerifiableFirstPartyClients, allowOfflineAccess, + allowOnlineAccess, tokenLifetime, tokenDialect, enforcePolicies, diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerResponseContent.java index 7759c0e03..08ce5ff08 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerResponseContent.java @@ -40,6 +40,8 @@ public final class UpdateResourceServerResponseContent { private final Optional allowOfflineAccess; + private final Optional allowOnlineAccess; + private final Optional skipConsentForVerifiableFirstPartyClients; private final Optional tokenLifetime; @@ -54,7 +56,7 @@ public final class UpdateResourceServerResponseContent { private final OptionalNullable consentPolicy; - private final Optional> authorizationDetails; + private final OptionalNullable> authorizationDetails; private final OptionalNullable proofOfPossession; @@ -73,6 +75,7 @@ private UpdateResourceServerResponseContent( Optional signingAlg, Optional signingSecret, Optional allowOfflineAccess, + Optional allowOnlineAccess, Optional skipConsentForVerifiableFirstPartyClients, Optional tokenLifetime, Optional tokenLifetimeForWeb, @@ -80,7 +83,7 @@ private UpdateResourceServerResponseContent( Optional tokenDialect, OptionalNullable tokenEncryption, OptionalNullable consentPolicy, - Optional> authorizationDetails, + OptionalNullable> authorizationDetails, OptionalNullable proofOfPossession, Optional subjectTypeAuthorization, Optional clientId, @@ -93,6 +96,7 @@ private UpdateResourceServerResponseContent( this.signingAlg = signingAlg; this.signingSecret = signingSecret; this.allowOfflineAccess = allowOfflineAccess; + this.allowOnlineAccess = allowOnlineAccess; this.skipConsentForVerifiableFirstPartyClients = skipConsentForVerifiableFirstPartyClients; this.tokenLifetime = tokenLifetime; this.tokenLifetimeForWeb = tokenLifetimeForWeb; @@ -168,6 +172,14 @@ public Optional getAllowOfflineAccess() { return allowOfflineAccess; } + /** + * @return Whether Online Refresh Tokens can be issued for this API (true) or not (false). + */ + @JsonProperty("allow_online_access") + public Optional getAllowOnlineAccess() { + return allowOnlineAccess; + } + /** * @return Whether to skip user consent for applications flagged as first party (true) or not (false). */ @@ -223,8 +235,12 @@ public OptionalNullable getConsentPolicy() { return consentPolicy; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("authorization_details") - public Optional> getAuthorizationDetails() { + public OptionalNullable> getAuthorizationDetails() { + if (authorizationDetails == null) { + return OptionalNullable.absent(); + } return authorizationDetails; } @@ -262,6 +278,12 @@ private OptionalNullable _getConsentPolicy() { return consentPolicy; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("authorization_details") + private OptionalNullable> _getAuthorizationDetails() { + return authorizationDetails; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("proof_of_possession") private OptionalNullable _getProofOfPossession() { @@ -289,6 +311,7 @@ private boolean equalTo(UpdateResourceServerResponseContent other) { && signingAlg.equals(other.signingAlg) && signingSecret.equals(other.signingSecret) && allowOfflineAccess.equals(other.allowOfflineAccess) + && allowOnlineAccess.equals(other.allowOnlineAccess) && skipConsentForVerifiableFirstPartyClients.equals(other.skipConsentForVerifiableFirstPartyClients) && tokenLifetime.equals(other.tokenLifetime) && tokenLifetimeForWeb.equals(other.tokenLifetimeForWeb) @@ -313,6 +336,7 @@ public int hashCode() { this.signingAlg, this.signingSecret, this.allowOfflineAccess, + this.allowOnlineAccess, this.skipConsentForVerifiableFirstPartyClients, this.tokenLifetime, this.tokenLifetimeForWeb, @@ -353,6 +377,8 @@ public static final class Builder { private Optional allowOfflineAccess = Optional.empty(); + private Optional allowOnlineAccess = Optional.empty(); + private Optional skipConsentForVerifiableFirstPartyClients = Optional.empty(); private Optional tokenLifetime = Optional.empty(); @@ -367,7 +393,7 @@ public static final class Builder { private OptionalNullable consentPolicy = OptionalNullable.absent(); - private Optional> authorizationDetails = Optional.empty(); + private OptionalNullable> authorizationDetails = OptionalNullable.absent(); private OptionalNullable proofOfPossession = OptionalNullable.absent(); @@ -389,6 +415,7 @@ public Builder from(UpdateResourceServerResponseContent other) { signingAlg(other.getSigningAlg()); signingSecret(other.getSigningSecret()); allowOfflineAccess(other.getAllowOfflineAccess()); + allowOnlineAccess(other.getAllowOnlineAccess()); skipConsentForVerifiableFirstPartyClients(other.getSkipConsentForVerifiableFirstPartyClients()); tokenLifetime(other.getTokenLifetime()); tokenLifetimeForWeb(other.getTokenLifetimeForWeb()); @@ -512,6 +539,20 @@ public Builder allowOfflineAccess(Boolean allowOfflineAccess) { return this; } + /** + *

Whether Online Refresh Tokens can be issued for this API (true) or not (false).

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

Whether to skip user consent for applications flagged as first party (true) or not (false).

*/ @@ -646,13 +687,33 @@ public Builder consentPolicy( } @JsonSetter(value = "authorization_details", nulls = Nulls.SKIP) - public Builder authorizationDetails(Optional> authorizationDetails) { + public Builder authorizationDetails(@Nullable OptionalNullable> authorizationDetails) { this.authorizationDetails = authorizationDetails; return this; } public Builder authorizationDetails(List authorizationDetails) { - this.authorizationDetails = Optional.ofNullable(authorizationDetails); + this.authorizationDetails = OptionalNullable.of(authorizationDetails); + return this; + } + + public Builder authorizationDetails(Optional> authorizationDetails) { + if (authorizationDetails.isPresent()) { + this.authorizationDetails = OptionalNullable.of(authorizationDetails.get()); + } else { + this.authorizationDetails = OptionalNullable.absent(); + } + return this; + } + + public Builder authorizationDetails(com.auth0.client.mgmt.core.Nullable> authorizationDetails) { + if (authorizationDetails.isNull()) { + this.authorizationDetails = OptionalNullable.ofNull(); + } else if (authorizationDetails.isEmpty()) { + this.authorizationDetails = OptionalNullable.absent(); + } else { + this.authorizationDetails = OptionalNullable.of(authorizationDetails.get()); + } return this; } @@ -725,6 +786,7 @@ public UpdateResourceServerResponseContent build() { signingAlg, signingSecret, allowOfflineAccess, + allowOnlineAccess, skipConsentForVerifiableFirstPartyClients, tokenLifetime, tokenLifetimeForWeb, diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateTenantSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateTenantSettingsResponseContent.java index 22d9b9f96..9c451010e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateTenantSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateTenantSettingsResponseContent.java @@ -78,7 +78,7 @@ public final class UpdateTenantSettingsResponseContent { private final Optional customizeMfaInPostloginAction; - private final Optional> acrValuesSupported; + private final OptionalNullable> acrValuesSupported; private final OptionalNullable mtls; @@ -124,7 +124,7 @@ private UpdateTenantSettingsResponseContent( Optional oidcLogout, Optional allowOrganizationNameInAuthenticationApi, Optional customizeMfaInPostloginAction, - Optional> acrValuesSupported, + OptionalNullable> acrValuesSupported, OptionalNullable mtls, Optional pushedAuthorizationRequestsSupported, OptionalNullable authorizationResponseIssParameterSupported, @@ -391,8 +391,12 @@ public Optional getCustomizeMfaInPostloginAction() { /** * @return Supported ACR values */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("acr_values_supported") - public Optional> getAcrValuesSupported() { + public OptionalNullable> getAcrValuesSupported() { + if (acrValuesSupported == null) { + return OptionalNullable.absent(); + } return acrValuesSupported; } @@ -502,6 +506,12 @@ private OptionalNullable _getSessions() { return sessions; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("acr_values_supported") + private OptionalNullable> _getAcrValuesSupported() { + return acrValuesSupported; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("mtls") private OptionalNullable _getMtls() { @@ -676,7 +686,7 @@ public static final class Builder { private Optional customizeMfaInPostloginAction = Optional.empty(); - private Optional> acrValuesSupported = Optional.empty(); + private OptionalNullable> acrValuesSupported = OptionalNullable.absent(); private OptionalNullable mtls = OptionalNullable.absent(); @@ -1234,13 +1244,33 @@ public Builder customizeMfaInPostloginAction(Boolean customizeMfaInPostloginActi *

Supported ACR values

*/ @JsonSetter(value = "acr_values_supported", nulls = Nulls.SKIP) - public Builder acrValuesSupported(Optional> acrValuesSupported) { + public Builder acrValuesSupported(@Nullable OptionalNullable> acrValuesSupported) { this.acrValuesSupported = acrValuesSupported; return this; } public Builder acrValuesSupported(List acrValuesSupported) { - this.acrValuesSupported = Optional.ofNullable(acrValuesSupported); + this.acrValuesSupported = OptionalNullable.of(acrValuesSupported); + return this; + } + + public Builder acrValuesSupported(Optional> acrValuesSupported) { + if (acrValuesSupported.isPresent()) { + this.acrValuesSupported = OptionalNullable.of(acrValuesSupported.get()); + } else { + this.acrValuesSupported = OptionalNullable.absent(); + } + return this; + } + + public Builder acrValuesSupported(com.auth0.client.mgmt.core.Nullable> acrValuesSupported) { + if (acrValuesSupported.isNull()) { + this.acrValuesSupported = OptionalNullable.ofNull(); + } else if (acrValuesSupported.isEmpty()) { + this.acrValuesSupported = OptionalNullable.absent(); + } else { + this.acrValuesSupported = OptionalNullable.of(acrValuesSupported.get()); + } return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserGroupsResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/UserGroupsResponseSchema.java index 4adb8d5a6..9991515ee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserGroupsResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserGroupsResponseSchema.java @@ -3,9 +3,7 @@ */ package com.auth0.client.mgmt.types; -import com.auth0.client.mgmt.core.NullableNonemptyFilter; import com.auth0.client.mgmt.core.ObjectMappers; -import com.auth0.client.mgmt.core.OptionalNullable; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -19,7 +17,6 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.Nullable; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UserGroupsResponseSchema.Builder.class) @@ -32,12 +29,8 @@ public final class UserGroupsResponseSchema implements IGroup { private final Optional connectionId; - private final OptionalNullable organizationId; - private final Optional tenantName; - private final OptionalNullable description; - private final Optional createdAt; private final Optional updatedAt; @@ -51,9 +44,7 @@ private UserGroupsResponseSchema( Optional name, Optional externalId, Optional connectionId, - OptionalNullable organizationId, Optional tenantName, - OptionalNullable description, Optional createdAt, Optional updatedAt, Optional membershipCreatedAt, @@ -62,9 +53,7 @@ private UserGroupsResponseSchema( 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.membershipCreatedAt = membershipCreatedAt; @@ -81,7 +70,7 @@ public Optional getId() { } /** - * @return Name of the group. Must be unique within its scope (connection, organization, or tenant). Must contain between 1 and 128 printable ASCII characters. + * @return Name of the group. Must be unique within its connection. Must contain between 1 and 128 printable ASCII characters. */ @JsonProperty("name") @java.lang.Override @@ -107,19 +96,6 @@ 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") - @java.lang.Override - public OptionalNullable getOrganizationId() { - if (organizationId == null) { - return OptionalNullable.absent(); - } - return organizationId; - } - /** * @return Identifier for the tenant this group belongs to. */ @@ -129,16 +105,6 @@ public Optional getTenantName() { return tenantName; } - @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) - @JsonProperty("description") - @java.lang.Override - public OptionalNullable getDescription() { - if (description == null) { - return OptionalNullable.absent(); - } - return description; - } - /** * @return Timestamp of when the group was created. */ @@ -165,18 +131,6 @@ public Optional getMembershipCreatedAt() { return membershipCreatedAt; } - @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; @@ -193,9 +147,7 @@ private boolean equalTo(UserGroupsResponseSchema other) { && 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) && membershipCreatedAt.equals(other.membershipCreatedAt); @@ -208,9 +160,7 @@ public int hashCode() { this.name, this.externalId, this.connectionId, - this.organizationId, this.tenantName, - this.description, this.createdAt, this.updatedAt, this.membershipCreatedAt); @@ -235,12 +185,8 @@ public static final class Builder { private Optional connectionId = Optional.empty(); - private OptionalNullable organizationId = OptionalNullable.absent(); - private Optional tenantName = Optional.empty(); - private OptionalNullable description = OptionalNullable.absent(); - private Optional createdAt = Optional.empty(); private Optional updatedAt = Optional.empty(); @@ -257,9 +203,7 @@ public Builder from(UserGroupsResponseSchema other) { name(other.getName()); externalId(other.getExternalId()); connectionId(other.getConnectionId()); - organizationId(other.getOrganizationId()); tenantName(other.getTenantName()); - description(other.getDescription()); createdAt(other.getCreatedAt()); updatedAt(other.getUpdatedAt()); membershipCreatedAt(other.getMembershipCreatedAt()); @@ -281,7 +225,7 @@ public Builder id(String id) { } /** - *

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 connection. Must contain between 1 and 128 printable ASCII characters.

*/ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { @@ -322,40 +266,6 @@ public Builder connectionId(String connectionId) { return this; } - /** - *

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

- */ - @JsonSetter(value = "organization_id", nulls = Nulls.SKIP) - public Builder organizationId(@Nullable OptionalNullable organizationId) { - this.organizationId = organizationId; - return this; - } - - public Builder organizationId(String organizationId) { - this.organizationId = OptionalNullable.of(organizationId); - return this; - } - - public Builder organizationId(Optional organizationId) { - if (organizationId.isPresent()) { - this.organizationId = OptionalNullable.of(organizationId.get()); - } else { - this.organizationId = OptionalNullable.absent(); - } - return this; - } - - public Builder 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 tenant this group belongs to.

*/ @@ -370,37 +280,6 @@ public Builder tenantName(String tenantName) { return this; } - @JsonSetter(value = "description", nulls = Nulls.SKIP) - public Builder description(@Nullable OptionalNullable description) { - this.description = description; - return this; - } - - public Builder description(String description) { - this.description = OptionalNullable.of(description); - return this; - } - - public Builder description(Optional description) { - if (description.isPresent()) { - this.description = OptionalNullable.of(description.get()); - } else { - this.description = OptionalNullable.absent(); - } - return this; - } - - public Builder 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; - } - /** *

Timestamp of when the group was created.

*/ @@ -449,9 +328,7 @@ public UserGroupsResponseSchema build() { name, externalId, connectionId, - organizationId, tenantName, - description, createdAt, updatedAt, membershipCreatedAt, diff --git a/src/main/java/com/auth0/client/mgmt/types/UserIdentityProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/UserIdentityProviderEnum.java index 79e3e233f..56a593463 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserIdentityProviderEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserIdentityProviderEnum.java @@ -42,8 +42,6 @@ public final class UserIdentityProviderEnum { public static final UserIdentityProviderEnum SALESFORCE_SANDBOX = new UserIdentityProviderEnum(Value.SALESFORCE_SANDBOX, "salesforce-sandbox"); - public static final UserIdentityProviderEnum MIICARD = new UserIdentityProviderEnum(Value.MIICARD, "miicard"); - public static final UserIdentityProviderEnum FACEBOOK = new UserIdentityProviderEnum(Value.FACEBOOK, "facebook"); public static final UserIdentityProviderEnum OAUTH1 = new UserIdentityProviderEnum(Value.OAUTH1, "oauth1"); @@ -67,8 +65,6 @@ public final class UserIdentityProviderEnum { public static final UserIdentityProviderEnum SMS = new UserIdentityProviderEnum(Value.SMS, "sms"); - public static final UserIdentityProviderEnum AOL = new UserIdentityProviderEnum(Value.AOL, "aol"); - public static final UserIdentityProviderEnum TWITTER = new UserIdentityProviderEnum(Value.TWITTER, "twitter"); public static final UserIdentityProviderEnum WINDOWSLIVE = @@ -85,8 +81,6 @@ public final class UserIdentityProviderEnum { public static final UserIdentityProviderEnum PAYPAL_SANDBOX = new UserIdentityProviderEnum(Value.PAYPAL_SANDBOX, "paypal-sandbox"); - public static final UserIdentityProviderEnum RENREN = new UserIdentityProviderEnum(Value.RENREN, "renren"); - public static final UserIdentityProviderEnum SAMLP = new UserIdentityProviderEnum(Value.SAMLP, "samlp"); public static final UserIdentityProviderEnum DROPBOX = new UserIdentityProviderEnum(Value.DROPBOX, "dropbox"); @@ -103,13 +97,8 @@ public final class UserIdentityProviderEnum { public static final UserIdentityProviderEnum WAAD = new UserIdentityProviderEnum(Value.WAAD, "waad"); - public static final UserIdentityProviderEnum THECITY_SANDBOX = - new UserIdentityProviderEnum(Value.THECITY_SANDBOX, "thecity-sandbox"); - public static final UserIdentityProviderEnum OIDC = new UserIdentityProviderEnum(Value.OIDC, "oidc"); - public static final UserIdentityProviderEnum YAMMER = new UserIdentityProviderEnum(Value.YAMMER, "yammer"); - public static final UserIdentityProviderEnum EVERNOTE_SANDBOX = new UserIdentityProviderEnum(Value.EVERNOTE_SANDBOX, "evernote-sandbox"); @@ -144,8 +133,6 @@ public final class UserIdentityProviderEnum { public static final UserIdentityProviderEnum LINKEDIN = new UserIdentityProviderEnum(Value.LINKEDIN, "linkedin"); - public static final UserIdentityProviderEnum THECITY = new UserIdentityProviderEnum(Value.THECITY, "thecity"); - private final Value value; private final String string; @@ -209,8 +196,6 @@ public T visit(Visitor visitor) { return visitor.visitShopify(); case SALESFORCE_SANDBOX: return visitor.visitSalesforceSandbox(); - case MIICARD: - return visitor.visitMiicard(); case FACEBOOK: return visitor.visitFacebook(); case OAUTH1: @@ -233,8 +218,6 @@ public T visit(Visitor visitor) { return visitor.visitOffice365(); case SMS: return visitor.visitSms(); - case AOL: - return visitor.visitAol(); case TWITTER: return visitor.visitTwitter(); case WINDOWSLIVE: @@ -249,8 +232,6 @@ public T visit(Visitor visitor) { return visitor.visitBitly(); case PAYPAL_SANDBOX: return visitor.visitPaypalSandbox(); - case RENREN: - return visitor.visitRenren(); case SAMLP: return visitor.visitSamlp(); case DROPBOX: @@ -265,12 +246,8 @@ public T visit(Visitor visitor) { return visitor.visitThirtysevensignals(); case WAAD: return visitor.visitWaad(); - case THECITY_SANDBOX: - return visitor.visitThecitySandbox(); case OIDC: return visitor.visitOidc(); - case YAMMER: - return visitor.visitYammer(); case EVERNOTE_SANDBOX: return visitor.visitEvernoteSandbox(); case SALESFORCE_COMMUNITY: @@ -301,8 +278,6 @@ public T visit(Visitor visitor) { return visitor.visitPaypal(); case LINKEDIN: return visitor.visitLinkedin(); - case THECITY: - return visitor.visitThecity(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -342,8 +317,6 @@ public static UserIdentityProviderEnum valueOf(String value) { return SHOPIFY; case "salesforce-sandbox": return SALESFORCE_SANDBOX; - case "miicard": - return MIICARD; case "facebook": return FACEBOOK; case "oauth1": @@ -366,8 +339,6 @@ public static UserIdentityProviderEnum valueOf(String value) { return OFFICE365; case "sms": return SMS; - case "aol": - return AOL; case "twitter": return TWITTER; case "windowslive": @@ -382,8 +353,6 @@ public static UserIdentityProviderEnum valueOf(String value) { return BITLY; case "paypal-sandbox": return PAYPAL_SANDBOX; - case "renren": - return RENREN; case "samlp": return SAMLP; case "dropbox": @@ -398,12 +367,8 @@ public static UserIdentityProviderEnum valueOf(String value) { return THIRTYSEVENSIGNALS; case "waad": return WAAD; - case "thecity-sandbox": - return THECITY_SANDBOX; case "oidc": return OIDC; - case "yammer": - return YAMMER; case "evernote-sandbox": return EVERNOTE_SANDBOX; case "salesforce-community": @@ -434,8 +399,6 @@ public static UserIdentityProviderEnum valueOf(String value) { return PAYPAL; case "linkedin": return LINKEDIN; - case "thecity": - return THECITY; default: return new UserIdentityProviderEnum(Value.UNKNOWN, value); } @@ -454,8 +417,6 @@ public enum Value { BITBUCKET, - AOL, - AUTH0OIDC, AUTH0, @@ -500,8 +461,6 @@ public enum Value { LINKEDIN, - MIICARD, - OAUTH1, OAUTH2, @@ -520,8 +479,6 @@ public enum Value { PLANNINGCENTER, - RENREN, - SALESFORCE_COMMUNITY, SALESFORCE_SANDBOX, @@ -540,10 +497,6 @@ public enum Value { SOUNDCLOUD, - THECITY_SANDBOX, - - THECITY, - THIRTYSEVENSIGNALS, TWITTER, @@ -562,8 +515,6 @@ public enum Value { YAHOO, - YAMMER, - YANDEX, UNKNOWN @@ -582,8 +533,6 @@ public interface Visitor { T visitBitbucket(); - T visitAol(); - T visitAuth0Oidc(); T visitAuth0(); @@ -628,8 +577,6 @@ public interface Visitor { T visitLinkedin(); - T visitMiicard(); - T visitOauth1(); T visitOauth2(); @@ -648,8 +595,6 @@ public interface Visitor { T visitPlanningcenter(); - T visitRenren(); - T visitSalesforceCommunity(); T visitSalesforceSandbox(); @@ -668,10 +613,6 @@ public interface Visitor { T visitSoundcloud(); - T visitThecitySandbox(); - - T visitThecity(); - T visitThirtysevensignals(); T visitTwitter(); @@ -690,8 +631,6 @@ public interface Visitor { T visitYahoo(); - T visitYammer(); - T visitYandex(); T visitUnknown(String unknownType); diff --git a/src/test/java/com/auth0/client/mgmt/ActionsExecutionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsExecutionsWireTest.java index c26ef9a49..4365fd7d7 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsExecutionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsExecutionsWireTest.java @@ -38,7 +38,7 @@ public void testGet() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"trigger_id\":\"trigger_id\",\"status\":\"unspecified\",\"results\":[{\"action_name\":\"action_name\",\"started_at\":\"2024-01-15T09:30:00Z\",\"ended_at\":\"2024-01-15T09:30:00Z\"}],\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}")); + "{\"id\":\"id\",\"trigger_id\":\"post-login\",\"status\":\"unspecified\",\"results\":[{\"action_name\":\"action_name\",\"started_at\":\"2024-01-15T09:30:00Z\",\"ended_at\":\"2024-01-15T09:30:00Z\"}],\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}")); GetActionExecutionResponseContent response = client.actions().executions().get("id"); RecordedRequest request = server.takeRequest(); @@ -51,7 +51,7 @@ public void testGet() throws Exception { String expectedResponseBody = "" + "{\n" + " \"id\": \"id\",\n" - + " \"trigger_id\": \"trigger_id\",\n" + + " \"trigger_id\": \"post-login\",\n" + " \"status\": \"unspecified\",\n" + " \"results\": [\n" + " {\n" diff --git a/src/test/java/com/auth0/client/mgmt/ActionsModulesWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsModulesWireTest.java index f9cade8ae..e8c3b02ff 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsModulesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsModulesWireTest.java @@ -390,7 +390,7 @@ public void testListActions() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"actions\":[{\"action_id\":\"action_id\",\"action_name\":\"action_name\",\"module_version_id\":\"module_version_id\",\"module_version_number\":1,\"supported_triggers\":[{\"id\":\"id\"}]}],\"total\":1,\"page\":1,\"per_page\":1}")); + "{\"actions\":[{\"action_id\":\"action_id\",\"action_name\":\"action_name\",\"module_version_id\":\"module_version_id\",\"module_version_number\":1,\"supported_triggers\":[{\"id\":\"post-login\"}]}],\"total\":1,\"page\":1,\"per_page\":1}")); SyncPagingIterable response = client.actions() .modules() .listActions( diff --git a/src/test/java/com/auth0/client/mgmt/ActionsTriggersBindingsWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsTriggersBindingsWireTest.java index c669f7abb..18057dc2a 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsTriggersBindingsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsTriggersBindingsWireTest.java @@ -6,6 +6,7 @@ import com.auth0.client.mgmt.core.OptionalNullable; import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.ActionBinding; +import com.auth0.client.mgmt.types.ActionTriggerTypeEnum; import com.auth0.client.mgmt.types.UpdateActionBindingsResponseContent; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; @@ -43,12 +44,12 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"total\":1.1,\"page\":1.1,\"per_page\":1.1,\"bindings\":[{\"id\":\"id\",\"trigger_id\":\"trigger_id\",\"display_name\":\"display_name\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}]}")); + "{\"total\":1.1,\"page\":1.1,\"per_page\":1.1,\"bindings\":[{\"id\":\"id\",\"trigger_id\":\"post-login\",\"display_name\":\"display_name\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}]}")); SyncPagingIterable response = client.actions() .triggers() .bindings() .list( - "triggerId", + ActionTriggerTypeEnum.POST_LOGIN, ListActionTriggerBindingsRequestParameters.builder() .page(OptionalNullable.of(1)) .perPage(OptionalNullable.of(1)) @@ -69,12 +70,12 @@ public void testUpdateMany() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"bindings\":[{\"id\":\"id\",\"trigger_id\":\"trigger_id\",\"display_name\":\"display_name\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}]}")); + "{\"bindings\":[{\"id\":\"id\",\"trigger_id\":\"post-login\",\"display_name\":\"display_name\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}]}")); UpdateActionBindingsResponseContent response = client.actions() .triggers() .bindings() .updateMany( - "triggerId", + ActionTriggerTypeEnum.POST_LOGIN, UpdateActionBindingsRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -117,7 +118,7 @@ else if (actualJson.has("kind")) + " \"bindings\": [\n" + " {\n" + " \"id\": \"id\",\n" - + " \"trigger_id\": \"trigger_id\",\n" + + " \"trigger_id\": \"post-login\",\n" + " \"display_name\": \"display_name\",\n" + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" diff --git a/src/test/java/com/auth0/client/mgmt/ActionsTriggersWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsTriggersWireTest.java index f8761c9a1..61514fa98 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsTriggersWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsTriggersWireTest.java @@ -38,7 +38,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"triggers\":[{\"id\":\"id\",\"version\":\"version\",\"status\":\"status\",\"runtimes\":[\"runtimes\"],\"default_runtime\":\"default_runtime\",\"compatible_triggers\":[{\"id\":\"id\",\"version\":\"version\"}],\"binding_policy\":\"trigger-bound\"}]}")); + "{\"triggers\":[{\"id\":\"post-login\",\"version\":\"version\",\"status\":\"status\",\"runtimes\":[\"runtimes\"],\"default_runtime\":\"default_runtime\",\"compatible_triggers\":[{\"id\":\"post-login\",\"version\":\"version\"}],\"binding_policy\":\"trigger-bound\"}]}")); ListActionTriggersResponseContent response = client.actions().triggers().list(); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -51,7 +51,7 @@ public void testList() throws Exception { + "{\n" + " \"triggers\": [\n" + " {\n" - + " \"id\": \"id\",\n" + + " \"id\": \"post-login\",\n" + " \"version\": \"version\",\n" + " \"status\": \"status\",\n" + " \"runtimes\": [\n" @@ -60,7 +60,7 @@ public void testList() throws Exception { + " \"default_runtime\": \"default_runtime\",\n" + " \"compatible_triggers\": [\n" + " {\n" - + " \"id\": \"id\",\n" + + " \"id\": \"post-login\",\n" + " \"version\": \"version\"\n" + " }\n" + " ],\n" diff --git a/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java index 43aeff40d..ce7add32c 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java @@ -43,7 +43,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"total\":1.1,\"page\":1.1,\"per_page\":1.1,\"versions\":[{\"id\":\"id\",\"action_id\":\"action_id\",\"code\":\"code\",\"dependencies\":[{}],\"deployed\":true,\"runtime\":\"runtime\",\"secrets\":[{}],\"status\":\"pending\",\"number\":1.1,\"errors\":[{}],\"built_at\":\"2024-01-15T09:30:00Z\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"supported_triggers\":[{\"id\":\"id\"}],\"modules\":[{}]}]}")); + "{\"total\":1.1,\"page\":1.1,\"per_page\":1.1,\"versions\":[{\"id\":\"id\",\"action_id\":\"action_id\",\"code\":\"code\",\"dependencies\":[{}],\"deployed\":true,\"runtime\":\"runtime\",\"secrets\":[{}],\"status\":\"pending\",\"number\":1.1,\"errors\":[{}],\"built_at\":\"2024-01-15T09:30:00Z\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"supported_triggers\":[{\"id\":\"post-login\"}],\"modules\":[{}]}]}")); SyncPagingIterable response = client.actions() .versions() .list( diff --git a/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java index 3173e5643..50015040f 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java @@ -5,6 +5,7 @@ import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.Action; import com.auth0.client.mgmt.types.ActionTrigger; +import com.auth0.client.mgmt.types.ActionTriggerTypeEnum; import com.auth0.client.mgmt.types.CreateActionRequestContent; import com.auth0.client.mgmt.types.CreateActionResponseContent; import com.auth0.client.mgmt.types.DeleteActionRequestParameters; @@ -53,10 +54,10 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"total\":1.1,\"page\":1.1,\"per_page\":1.1,\"actions\":[{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"code\":\"code\",\"dependencies\":[{}],\"runtime\":\"runtime\",\"secrets\":[{}],\"installed_integration_id\":\"installed_integration_id\",\"status\":\"pending\",\"built_at\":\"2024-01-15T09:30:00Z\",\"deploy\":true,\"modules\":[{}]}]}")); + "{\"total\":1.1,\"page\":1.1,\"per_page\":1.1,\"actions\":[{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"post-login\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"code\":\"code\",\"dependencies\":[{}],\"runtime\":\"runtime\",\"secrets\":[{}],\"installed_integration_id\":\"installed_integration_id\",\"status\":\"pending\",\"built_at\":\"2024-01-15T09:30:00Z\",\"deploy\":true,\"modules\":[{}]}]}")); SyncPagingIterable response = client.actions() .list(ListActionsRequestParameters.builder() - .triggerId(OptionalNullable.of("triggerId")) + .triggerId(OptionalNullable.of(ActionTriggerTypeEnum.POST_LOGIN)) .actionName(OptionalNullable.of("actionName")) .deployed(OptionalNullable.of(true)) .page(OptionalNullable.of(1)) @@ -81,8 +82,9 @@ public void testCreate() throws Exception { CreateActionResponseContent response = client.actions() .create(CreateActionRequestContent.builder() .name("name") - .supportedTriggers( - Arrays.asList(ActionTrigger.builder().id("id").build())) + .supportedTriggers(Arrays.asList(ActionTrigger.builder() + .id(ActionTriggerTypeEnum.POST_LOGIN) + .build())) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -94,7 +96,7 @@ public void testCreate() throws Exception { + " \"name\": \"name\",\n" + " \"supported_triggers\": [\n" + " {\n" - + " \"id\": \"id\"\n" + + " \"id\": \"post-login\"\n" + " }\n" + " ]\n" + "}"; diff --git a/src/test/java/com/auth0/client/mgmt/ClientGrantsWireTest.java b/src/test/java/com/auth0/client/mgmt/ClientGrantsWireTest.java index 68e7ab36c..48191e530 100644 --- a/src/test/java/com/auth0/client/mgmt/ClientGrantsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ClientGrantsWireTest.java @@ -76,7 +76,6 @@ public void testCreate() throws Exception { "{\"id\":\"id\",\"client_id\":\"client_id\",\"audience\":\"audience\",\"scope\":[\"scope\"],\"organization_usage\":\"deny\",\"allow_any_organization\":true,\"is_system\":true,\"subject_type\":\"client\",\"authorization_details_types\":[\"authorization_details_types\"],\"allow_all_scopes\":true}")); CreateClientGrantResponseContent response = client.clientGrants() .create(CreateClientGrantRequestContent.builder() - .clientId("client_id") .audience("audience") .build()); RecordedRequest request = server.takeRequest(); @@ -84,8 +83,7 @@ public void testCreate() throws Exception { Assertions.assertEquals("POST", request.getMethod()); // Validate request body String actualRequestBody = request.getBody().readUtf8(); - String expectedRequestBody = - "" + "{\n" + " \"client_id\": \"client_id\",\n" + " \"audience\": \"audience\"\n" + "}"; + String expectedRequestBody = "" + "{\n" + " \"audience\": \"audience\"\n" + "}"; JsonNode actualJson = objectMapper.readTree(actualRequestBody); JsonNode expectedJson = objectMapper.readTree(expectedRequestBody); Assertions.assertTrue(jsonEquals(expectedJson, actualJson), "Request body structure does not match expected"); diff --git a/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java b/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java index 42b269cd0..766fea9bc 100644 --- a/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java @@ -9,6 +9,10 @@ import com.auth0.client.mgmt.types.GetClientRequestParameters; import com.auth0.client.mgmt.types.GetClientResponseContent; import com.auth0.client.mgmt.types.ListClientsRequestParameters; +import com.auth0.client.mgmt.types.PreviewCimdMetadataRequestContent; +import com.auth0.client.mgmt.types.PreviewCimdMetadataResponseContent; +import com.auth0.client.mgmt.types.RegisterCimdClientRequestContent; +import com.auth0.client.mgmt.types.RegisterCimdClientResponseContent; import com.auth0.client.mgmt.types.RotateClientSecretResponseContent; import com.auth0.client.mgmt.types.UpdateClientRequestContent; import com.auth0.client.mgmt.types.UpdateClientResponseContent; @@ -57,6 +61,7 @@ public void testList() throws Exception { .isGlobal(OptionalNullable.of(true)) .isFirstParty(OptionalNullable.of(true)) .appType(OptionalNullable.of("app_type")) + .externalClientId(OptionalNullable.of("external_client_id")) .q(OptionalNullable.of("q")) .build()); RecordedRequest request = server.takeRequest(); @@ -145,6 +150,243 @@ else if (actualResponseNode.has("kind")) } } + @Test + public void testPreviewCimdMetadata() throws Exception { + server.enqueue( + new MockResponse() + .setResponseCode(200) + .setBody( + "{\"client_id\":\"client_id\",\"errors\":[\"errors\"],\"validation\":{\"valid\":true,\"violations\":[\"violations\"],\"warnings\":[\"warnings\"]},\"mapped_fields\":{\"external_client_id\":\"external_client_id\",\"name\":\"name\",\"app_type\":\"app_type\",\"callbacks\":[\"callbacks\"],\"logo_uri\":\"logo_uri\",\"description\":\"description\",\"grant_types\":[\"grant_types\"],\"token_endpoint_auth_method\":\"token_endpoint_auth_method\",\"jwks_uri\":\"jwks_uri\",\"client_authentication_methods\":{\"private_key_jwt\":{\"credentials\":[{\"credential_type\":\"credential_type\",\"kid\":\"kid\",\"alg\":\"alg\"}]}}}}")); + PreviewCimdMetadataResponseContent response = client.clients() + .previewCimdMetadata(PreviewCimdMetadataRequestContent.builder() + .externalClientId("external_client_id") + .build()); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("POST", request.getMethod()); + // Validate request body + String actualRequestBody = request.getBody().readUtf8(); + String expectedRequestBody = "" + "{\n" + " \"external_client_id\": \"external_client_id\"\n" + "}"; + JsonNode actualJson = objectMapper.readTree(actualRequestBody); + JsonNode expectedJson = objectMapper.readTree(expectedRequestBody); + Assertions.assertTrue(jsonEquals(expectedJson, actualJson), "Request body structure does not match expected"); + if (actualJson.has("type") || actualJson.has("_type") || actualJson.has("kind")) { + String discriminator = null; + if (actualJson.has("type")) discriminator = actualJson.get("type").asText(); + else if (actualJson.has("_type")) + discriminator = actualJson.get("_type").asText(); + else if (actualJson.has("kind")) + discriminator = actualJson.get("kind").asText(); + Assertions.assertNotNull(discriminator, "Union type should have a discriminator field"); + Assertions.assertFalse(discriminator.isEmpty(), "Union discriminator should not be empty"); + } + + if (!actualJson.isNull()) { + Assertions.assertTrue( + actualJson.isObject() || actualJson.isArray() || actualJson.isValueNode(), + "request should be a valid JSON value"); + } + + if (actualJson.isArray()) { + Assertions.assertTrue(actualJson.size() >= 0, "Array should have valid size"); + } + if (actualJson.isObject()) { + Assertions.assertTrue(actualJson.size() >= 0, "Object should have valid field count"); + } + + // Validate response body + Assertions.assertNotNull(response, "Response should not be null"); + String actualResponseJson = objectMapper.writeValueAsString(response); + String expectedResponseBody = "" + + "{\n" + + " \"client_id\": \"client_id\",\n" + + " \"errors\": [\n" + + " \"errors\"\n" + + " ],\n" + + " \"validation\": {\n" + + " \"valid\": true,\n" + + " \"violations\": [\n" + + " \"violations\"\n" + + " ],\n" + + " \"warnings\": [\n" + + " \"warnings\"\n" + + " ]\n" + + " },\n" + + " \"mapped_fields\": {\n" + + " \"external_client_id\": \"external_client_id\",\n" + + " \"name\": \"name\",\n" + + " \"app_type\": \"app_type\",\n" + + " \"callbacks\": [\n" + + " \"callbacks\"\n" + + " ],\n" + + " \"logo_uri\": \"logo_uri\",\n" + + " \"description\": \"description\",\n" + + " \"grant_types\": [\n" + + " \"grant_types\"\n" + + " ],\n" + + " \"token_endpoint_auth_method\": \"token_endpoint_auth_method\",\n" + + " \"jwks_uri\": \"jwks_uri\",\n" + + " \"client_authentication_methods\": {\n" + + " \"private_key_jwt\": {\n" + + " \"credentials\": [\n" + + " {\n" + + " \"credential_type\": \"credential_type\",\n" + + " \"kid\": \"kid\",\n" + + " \"alg\": \"alg\"\n" + + " }\n" + + " ]\n" + + " }\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"); + } + } + + @Test + public void testRegisterCimdClient() throws Exception { + server.enqueue( + new MockResponse() + .setResponseCode(200) + .setBody( + "{\"client_id\":\"client_id\",\"mapped_fields\":{\"external_client_id\":\"external_client_id\",\"name\":\"name\",\"app_type\":\"app_type\",\"callbacks\":[\"callbacks\"],\"logo_uri\":\"logo_uri\",\"description\":\"description\",\"grant_types\":[\"grant_types\"],\"token_endpoint_auth_method\":\"token_endpoint_auth_method\",\"jwks_uri\":\"jwks_uri\",\"client_authentication_methods\":{\"private_key_jwt\":{\"credentials\":[{\"credential_type\":\"credential_type\",\"kid\":\"kid\",\"alg\":\"alg\"}]}}},\"validation\":{\"valid\":true,\"violations\":[\"violations\"],\"warnings\":[\"warnings\"]}}")); + RegisterCimdClientResponseContent response = client.clients() + .registerCimdClient(RegisterCimdClientRequestContent.builder() + .externalClientId("external_client_id") + .build()); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("POST", request.getMethod()); + // Validate request body + String actualRequestBody = request.getBody().readUtf8(); + String expectedRequestBody = "" + "{\n" + " \"external_client_id\": \"external_client_id\"\n" + "}"; + JsonNode actualJson = objectMapper.readTree(actualRequestBody); + JsonNode expectedJson = objectMapper.readTree(expectedRequestBody); + Assertions.assertTrue(jsonEquals(expectedJson, actualJson), "Request body structure does not match expected"); + if (actualJson.has("type") || actualJson.has("_type") || actualJson.has("kind")) { + String discriminator = null; + if (actualJson.has("type")) discriminator = actualJson.get("type").asText(); + else if (actualJson.has("_type")) + discriminator = actualJson.get("_type").asText(); + else if (actualJson.has("kind")) + discriminator = actualJson.get("kind").asText(); + Assertions.assertNotNull(discriminator, "Union type should have a discriminator field"); + Assertions.assertFalse(discriminator.isEmpty(), "Union discriminator should not be empty"); + } + + if (!actualJson.isNull()) { + Assertions.assertTrue( + actualJson.isObject() || actualJson.isArray() || actualJson.isValueNode(), + "request should be a valid JSON value"); + } + + if (actualJson.isArray()) { + Assertions.assertTrue(actualJson.size() >= 0, "Array should have valid size"); + } + if (actualJson.isObject()) { + Assertions.assertTrue(actualJson.size() >= 0, "Object should have valid field count"); + } + + // Validate response body + Assertions.assertNotNull(response, "Response should not be null"); + String actualResponseJson = objectMapper.writeValueAsString(response); + String expectedResponseBody = "" + + "{\n" + + " \"client_id\": \"client_id\",\n" + + " \"mapped_fields\": {\n" + + " \"external_client_id\": \"external_client_id\",\n" + + " \"name\": \"name\",\n" + + " \"app_type\": \"app_type\",\n" + + " \"callbacks\": [\n" + + " \"callbacks\"\n" + + " ],\n" + + " \"logo_uri\": \"logo_uri\",\n" + + " \"description\": \"description\",\n" + + " \"grant_types\": [\n" + + " \"grant_types\"\n" + + " ],\n" + + " \"token_endpoint_auth_method\": \"token_endpoint_auth_method\",\n" + + " \"jwks_uri\": \"jwks_uri\",\n" + + " \"client_authentication_methods\": {\n" + + " \"private_key_jwt\": {\n" + + " \"credentials\": [\n" + + " {\n" + + " \"credential_type\": \"credential_type\",\n" + + " \"kid\": \"kid\",\n" + + " \"alg\": \"alg\"\n" + + " }\n" + + " ]\n" + + " }\n" + + " }\n" + + " },\n" + + " \"validation\": {\n" + + " \"valid\": true,\n" + + " \"violations\": [\n" + + " \"violations\"\n" + + " ],\n" + + " \"warnings\": [\n" + + " \"warnings\"\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"); + } + } + @Test public void testGet() throws Exception { server.enqueue(new MockResponse() diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionsDirectoryProvisioningWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionsDirectoryProvisioningWireTest.java index 0e4130d23..5bfa36669 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionsDirectoryProvisioningWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionsDirectoryProvisioningWireTest.java @@ -45,7 +45,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"directory_provisionings\":[{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"mapping\":[{\"auth0\":\"auth0\",\"idp\":\"idp\"}],\"synchronize_automatically\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_status\":\"last_synchronization_status\",\"last_synchronization_error\":\"last_synchronization_error\"}],\"next\":\"next\"}")); + "{\"directory_provisionings\":[{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"mapping\":[{\"auth0\":\"auth0\",\"idp\":\"idp\"}],\"synchronize_automatically\":true,\"synchronize_groups\":\"synchronize_groups\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_status\":\"last_synchronization_status\",\"last_synchronization_error\":\"last_synchronization_error\"}],\"next\":\"next\"}")); SyncPagingIterable response = client.connections() .directoryProvisioning() .list(ListDirectoryProvisioningsRequestParameters.builder() @@ -68,7 +68,7 @@ public void testGet() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"mapping\":[{\"auth0\":\"auth0\",\"idp\":\"idp\"}],\"synchronize_automatically\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_status\":\"last_synchronization_status\",\"last_synchronization_error\":\"last_synchronization_error\"}")); + "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"mapping\":[{\"auth0\":\"auth0\",\"idp\":\"idp\"}],\"synchronize_automatically\":true,\"synchronize_groups\":\"synchronize_groups\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_status\":\"last_synchronization_status\",\"last_synchronization_error\":\"last_synchronization_error\"}")); GetDirectoryProvisioningResponseContent response = client.connections().directoryProvisioning().get("id"); RecordedRequest request = server.takeRequest(); @@ -90,6 +90,7 @@ public void testGet() throws Exception { + " }\n" + " ],\n" + " \"synchronize_automatically\": true,\n" + + " \"synchronize_groups\": \"synchronize_groups\",\n" + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" + " \"last_synchronization_at\": \"2024-01-15T09:30:00Z\",\n" @@ -133,7 +134,7 @@ public void testCreate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"mapping\":[{\"auth0\":\"auth0\",\"idp\":\"idp\"}],\"synchronize_automatically\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_status\":\"last_synchronization_status\",\"last_synchronization_error\":\"last_synchronization_error\"}")); + "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"mapping\":[{\"auth0\":\"auth0\",\"idp\":\"idp\"}],\"synchronize_automatically\":true,\"synchronize_groups\":\"synchronize_groups\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_status\":\"last_synchronization_status\",\"last_synchronization_error\":\"last_synchronization_error\"}")); CreateDirectoryProvisioningResponseContent response = client.connections().directoryProvisioning().create("id", OptionalNullable.absent()); RecordedRequest request = server.takeRequest(); @@ -155,6 +156,7 @@ public void testCreate() throws Exception { + " }\n" + " ],\n" + " \"synchronize_automatically\": true,\n" + + " \"synchronize_groups\": \"synchronize_groups\",\n" + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" + " \"last_synchronization_at\": \"2024-01-15T09:30:00Z\",\n" @@ -207,7 +209,7 @@ public void testUpdate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"mapping\":[{\"auth0\":\"auth0\",\"idp\":\"idp\"}],\"synchronize_automatically\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_status\":\"last_synchronization_status\",\"last_synchronization_error\":\"last_synchronization_error\"}")); + "{\"connection_id\":\"connection_id\",\"connection_name\":\"connection_name\",\"strategy\":\"strategy\",\"mapping\":[{\"auth0\":\"auth0\",\"idp\":\"idp\"}],\"synchronize_automatically\":true,\"synchronize_groups\":\"synchronize_groups\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_at\":\"2024-01-15T09:30:00Z\",\"last_synchronization_status\":\"last_synchronization_status\",\"last_synchronization_error\":\"last_synchronization_error\"}")); UpdateDirectoryProvisioningResponseContent response = client.connections().directoryProvisioning().update("id", OptionalNullable.absent()); RecordedRequest request = server.takeRequest(); @@ -229,6 +231,7 @@ public void testUpdate() throws Exception { + " }\n" + " ],\n" + " \"synchronize_automatically\": true,\n" + + " \"synchronize_groups\": \"synchronize_groups\",\n" + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" + " \"last_synchronization_at\": \"2024-01-15T09:30:00Z\",\n" diff --git a/src/test/java/com/auth0/client/mgmt/CustomDomainsWireTest.java b/src/test/java/com/auth0/client/mgmt/CustomDomainsWireTest.java index 5262d0767..6e2855a23 100644 --- a/src/test/java/com/auth0/client/mgmt/CustomDomainsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/CustomDomainsWireTest.java @@ -7,10 +7,13 @@ import com.auth0.client.mgmt.types.CustomDomain; import com.auth0.client.mgmt.types.CustomDomainProvisioningTypeEnum; import com.auth0.client.mgmt.types.GetCustomDomainResponseContent; +import com.auth0.client.mgmt.types.GetDefaultDomainResponseContent; import com.auth0.client.mgmt.types.ListCustomDomainsRequestParameters; +import com.auth0.client.mgmt.types.SetDefaultCustomDomainRequestContent; import com.auth0.client.mgmt.types.TestCustomDomainResponseContent; import com.auth0.client.mgmt.types.UpdateCustomDomainRequestContent; import com.auth0.client.mgmt.types.UpdateCustomDomainResponseContent; +import com.auth0.client.mgmt.types.UpdateDefaultDomainResponseContent; import com.auth0.client.mgmt.types.VerifyCustomDomainResponseContent; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; @@ -242,6 +245,196 @@ else if (actualResponseNode.has("kind")) } } + @Test + public void testGetDefault() throws Exception { + server.enqueue( + new MockResponse() + .setResponseCode(200) + .setBody( + "{\"custom_domain_id\":\"custom_domain_id\",\"domain\":\"domain\",\"primary\":true,\"is_default\":true,\"status\":\"pending_verification\",\"type\":\"auth0_managed_certs\",\"origin_domain_name\":\"origin_domain_name\",\"verification\":{\"methods\":[{\"name\":\"cname\",\"record\":\"record\"}],\"status\":\"verified\",\"error_msg\":\"error_msg\",\"last_verified_at\":\"last_verified_at\"},\"custom_client_ip_header\":\"custom_client_ip_header\",\"tls_policy\":\"tls_policy\",\"domain_metadata\":{\"key\":\"value\"},\"certificate\":{\"status\":\"provisioning\",\"error_msg\":\"error_msg\",\"certificate_authority\":\"letsencrypt\",\"renews_before\":\"renews_before\"},\"relying_party_identifier\":\"relying_party_identifier\"}")); + GetDefaultDomainResponseContent response = client.customDomains().getDefault(); + 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" + + " \"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" + + " \"verification\": {\n" + + " \"methods\": [\n" + + " {\n" + + " \"name\": \"cname\",\n" + + " \"record\": \"record\"\n" + + " }\n" + + " ],\n" + + " \"status\": \"verified\",\n" + + " \"error_msg\": \"error_msg\",\n" + + " \"last_verified_at\": \"last_verified_at\"\n" + + " },\n" + + " \"custom_client_ip_header\": \"custom_client_ip_header\",\n" + + " \"tls_policy\": \"tls_policy\",\n" + + " \"domain_metadata\": {\n" + + " \"key\": \"value\"\n" + + " },\n" + + " \"certificate\": {\n" + + " \"status\": \"provisioning\",\n" + + " \"error_msg\": \"error_msg\",\n" + + " \"certificate_authority\": \"letsencrypt\",\n" + + " \"renews_before\": \"renews_before\"\n" + + " },\n" + + " \"relying_party_identifier\": \"relying_party_identifier\"\n" + + "}"; + JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); + JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); + Assertions.assertTrue( + jsonEquals(expectedResponseNode, actualResponseNode), + "Response body structure does not match expected"); + if (actualResponseNode.has("type") || actualResponseNode.has("_type") || actualResponseNode.has("kind")) { + String discriminator = null; + if (actualResponseNode.has("type")) + discriminator = actualResponseNode.get("type").asText(); + else if (actualResponseNode.has("_type")) + discriminator = actualResponseNode.get("_type").asText(); + else if (actualResponseNode.has("kind")) + discriminator = actualResponseNode.get("kind").asText(); + Assertions.assertNotNull(discriminator, "Union type should have a discriminator field"); + Assertions.assertFalse(discriminator.isEmpty(), "Union discriminator should not be empty"); + } + + if (!actualResponseNode.isNull()) { + Assertions.assertTrue( + actualResponseNode.isObject() || actualResponseNode.isArray() || actualResponseNode.isValueNode(), + "response should be a valid JSON value"); + } + + if (actualResponseNode.isArray()) { + Assertions.assertTrue(actualResponseNode.size() >= 0, "Array should have valid size"); + } + if (actualResponseNode.isObject()) { + Assertions.assertTrue(actualResponseNode.size() >= 0, "Object should have valid field count"); + } + } + + @Test + public void testSetDefault() throws Exception { + server.enqueue( + new MockResponse() + .setResponseCode(200) + .setBody( + "{\"custom_domain_id\":\"custom_domain_id\",\"domain\":\"domain\",\"primary\":true,\"is_default\":true,\"status\":\"pending_verification\",\"type\":\"auth0_managed_certs\",\"origin_domain_name\":\"origin_domain_name\",\"verification\":{\"methods\":[{\"name\":\"cname\",\"record\":\"record\"}],\"status\":\"verified\",\"error_msg\":\"error_msg\",\"last_verified_at\":\"last_verified_at\"},\"custom_client_ip_header\":\"custom_client_ip_header\",\"tls_policy\":\"tls_policy\",\"domain_metadata\":{\"key\":\"value\"},\"certificate\":{\"status\":\"provisioning\",\"error_msg\":\"error_msg\",\"certificate_authority\":\"letsencrypt\",\"renews_before\":\"renews_before\"},\"relying_party_identifier\":\"relying_party_identifier\"}")); + UpdateDefaultDomainResponseContent response = client.customDomains() + .setDefault(SetDefaultCustomDomainRequestContent.builder() + .domain("domain") + .build()); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("PATCH", request.getMethod()); + // Validate request body + String actualRequestBody = request.getBody().readUtf8(); + String expectedRequestBody = "" + "{\n" + " \"domain\": \"domain\"\n" + "}"; + JsonNode actualJson = objectMapper.readTree(actualRequestBody); + JsonNode expectedJson = objectMapper.readTree(expectedRequestBody); + Assertions.assertTrue(jsonEquals(expectedJson, actualJson), "Request body structure does not match expected"); + if (actualJson.has("type") || actualJson.has("_type") || actualJson.has("kind")) { + String discriminator = null; + if (actualJson.has("type")) discriminator = actualJson.get("type").asText(); + else if (actualJson.has("_type")) + discriminator = actualJson.get("_type").asText(); + else if (actualJson.has("kind")) + discriminator = actualJson.get("kind").asText(); + Assertions.assertNotNull(discriminator, "Union type should have a discriminator field"); + Assertions.assertFalse(discriminator.isEmpty(), "Union discriminator should not be empty"); + } + + if (!actualJson.isNull()) { + Assertions.assertTrue( + actualJson.isObject() || actualJson.isArray() || actualJson.isValueNode(), + "request should be a valid JSON value"); + } + + if (actualJson.isArray()) { + Assertions.assertTrue(actualJson.size() >= 0, "Array should have valid size"); + } + if (actualJson.isObject()) { + Assertions.assertTrue(actualJson.size() >= 0, "Object should have valid field count"); + } + + // Validate response body + Assertions.assertNotNull(response, "Response should not be null"); + String actualResponseJson = objectMapper.writeValueAsString(response); + String expectedResponseBody = "" + + "{\n" + + " \"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" + + " \"verification\": {\n" + + " \"methods\": [\n" + + " {\n" + + " \"name\": \"cname\",\n" + + " \"record\": \"record\"\n" + + " }\n" + + " ],\n" + + " \"status\": \"verified\",\n" + + " \"error_msg\": \"error_msg\",\n" + + " \"last_verified_at\": \"last_verified_at\"\n" + + " },\n" + + " \"custom_client_ip_header\": \"custom_client_ip_header\",\n" + + " \"tls_policy\": \"tls_policy\",\n" + + " \"domain_metadata\": {\n" + + " \"key\": \"value\"\n" + + " },\n" + + " \"certificate\": {\n" + + " \"status\": \"provisioning\",\n" + + " \"error_msg\": \"error_msg\",\n" + + " \"certificate_authority\": \"letsencrypt\",\n" + + " \"renews_before\": \"renews_before\"\n" + + " },\n" + + " \"relying_party_identifier\": \"relying_party_identifier\"\n" + + "}"; + JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); + JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); + Assertions.assertTrue( + jsonEquals(expectedResponseNode, actualResponseNode), + "Response body structure does not match expected"); + if (actualResponseNode.has("type") || actualResponseNode.has("_type") || actualResponseNode.has("kind")) { + String discriminator = null; + if (actualResponseNode.has("type")) + discriminator = actualResponseNode.get("type").asText(); + else if (actualResponseNode.has("_type")) + discriminator = actualResponseNode.get("_type").asText(); + else if (actualResponseNode.has("kind")) + discriminator = actualResponseNode.get("kind").asText(); + Assertions.assertNotNull(discriminator, "Union type should have a discriminator field"); + Assertions.assertFalse(discriminator.isEmpty(), "Union discriminator should not be empty"); + } + + if (!actualResponseNode.isNull()) { + Assertions.assertTrue( + actualResponseNode.isObject() || actualResponseNode.isArray() || actualResponseNode.isValueNode(), + "response should be a valid JSON value"); + } + + if (actualResponseNode.isArray()) { + Assertions.assertTrue(actualResponseNode.size() >= 0, "Array should have valid size"); + } + if (actualResponseNode.isObject()) { + Assertions.assertTrue(actualResponseNode.size() >= 0, "Object should have valid field count"); + } + } + @Test public void testGet() throws Exception { server.enqueue( diff --git a/src/test/java/com/auth0/client/mgmt/GroupsWireTest.java b/src/test/java/com/auth0/client/mgmt/GroupsWireTest.java index 54cf1e868..7c044a96c 100644 --- a/src/test/java/com/auth0/client/mgmt/GroupsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/GroupsWireTest.java @@ -42,7 +42,7 @@ public void testList() throws Exception { 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}")); + "{\"groups\":[{\"id\":\"id\",\"name\":\"name\",\"external_id\":\"external_id\",\"connection_id\":\"connection_id\",\"tenant_name\":\"tenant_name\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"next\":\"next\",\"start\":1.1,\"limit\":1.1,\"total\":1.1}")); SyncPagingIterable response = client.groups() .list(ListGroupsRequestParameters.builder() .connectionId(OptionalNullable.of("connection_id")) @@ -69,7 +69,7 @@ public void testGet() throws Exception { 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\"}")); + "{\"id\":\"id\",\"name\":\"name\",\"external_id\":\"external_id\",\"connection_id\":\"connection_id\",\"tenant_name\":\"tenant_name\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"}")); GetGroupResponseContent response = client.groups().get("id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -84,9 +84,7 @@ public void testGet() throws Exception { + " \"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" + "}"; @@ -121,6 +119,15 @@ else if (actualResponseNode.has("kind")) } } + @Test + public void testDelete() throws Exception { + server.enqueue(new MockResponse().setResponseCode(200).setBody("{}")); + client.groups().delete("id"); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("DELETE", request.getMethod()); + } + /** * Compares two JsonNodes with numeric equivalence and null safety. * For objects, checks that all fields in 'expected' exist in 'actual' with matching values. diff --git a/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java b/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java index f2c783b0b..59aa2657b 100644 --- a/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java @@ -74,7 +74,6 @@ public void testCreate() throws Exception { .create(CreateNetworkAclRequestContent.builder() .description("description") .active(true) - .priority(1.1) .rule(NetworkAclRule.builder() .action(NetworkAclAction.builder().build()) .scope(NetworkAclRuleScopeEnum.MANAGEMENT) @@ -89,7 +88,6 @@ public void testCreate() throws Exception { + "{\n" + " \"description\": \"description\",\n" + " \"active\": true,\n" - + " \"priority\": 1.1,\n" + " \"rule\": {\n" + " \"action\": {},\n" + " \"scope\": \"management\"\n" @@ -180,7 +178,6 @@ public void testSet() throws Exception { SetNetworkAclRequestContent.builder() .description("description") .active(true) - .priority(1.1) .rule(NetworkAclRule.builder() .action(NetworkAclAction.builder().build()) .scope(NetworkAclRuleScopeEnum.MANAGEMENT) @@ -195,7 +192,6 @@ public void testSet() throws Exception { + "{\n" + " \"description\": \"description\",\n" + " \"active\": true,\n" - + " \"priority\": 1.1,\n" + " \"rule\": {\n" + " \"action\": {},\n" + " \"scope\": \"management\"\n" diff --git a/src/test/java/com/auth0/client/mgmt/RefreshTokensWireTest.java b/src/test/java/com/auth0/client/mgmt/RefreshTokensWireTest.java index f77c1163f..6b0e52848 100644 --- a/src/test/java/com/auth0/client/mgmt/RefreshTokensWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/RefreshTokensWireTest.java @@ -1,7 +1,11 @@ package com.auth0.client.mgmt; import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.auth0.client.mgmt.core.SyncPagingIterable; import com.auth0.client.mgmt.types.GetRefreshTokenResponseContent; +import com.auth0.client.mgmt.types.GetRefreshTokensRequestParameters; +import com.auth0.client.mgmt.types.RefreshTokenResponseContent; import com.auth0.client.mgmt.types.UpdateRefreshTokenRequestContent; import com.auth0.client.mgmt.types.UpdateRefreshTokenResponseContent; import com.fasterxml.jackson.databind.JsonNode; @@ -34,6 +38,32 @@ public void teardown() throws Exception { server.shutdown(); } + @Test + public void testList() throws Exception { + server.enqueue( + new MockResponse() + .setResponseCode(200) + .setBody( + "{\"refresh_tokens\":[{\"id\":\"id\",\"user_id\":\"user_id\",\"created_at\":\"2024-01-15T09:30:00Z\",\"idle_expires_at\":\"2024-01-15T09:30:00Z\",\"expires_at\":\"2024-01-15T09:30:00Z\",\"client_id\":\"client_id\",\"session_id\":\"session_id\",\"rotating\":true,\"resource_servers\":[{}],\"refresh_token_metadata\":{\"key\":\"value\"},\"last_exchanged_at\":\"2024-01-15T09:30:00Z\"}],\"next\":\"next\"}")); + SyncPagingIterable response = client.refreshTokens() + .list(GetRefreshTokensRequestParameters.builder() + .userId("user_id") + .clientId(OptionalNullable.of("client_id")) + .from(OptionalNullable.of("from")) + .take(OptionalNullable.of(1)) + .fields(OptionalNullable.of("fields")) + .includeFields(OptionalNullable.of(true)) + .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( diff --git a/src/test/java/com/auth0/client/mgmt/ResourceServersWireTest.java b/src/test/java/com/auth0/client/mgmt/ResourceServersWireTest.java index cfb8afe3b..0f06a87c4 100644 --- a/src/test/java/com/auth0/client/mgmt/ResourceServersWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ResourceServersWireTest.java @@ -47,7 +47,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"resource_servers\":[{\"id\":\"id\",\"name\":\"name\",\"is_system\":true,\"identifier\":\"identifier\",\"scopes\":[{\"value\":\"value\"}],\"signing_alg\":\"HS256\",\"signing_secret\":\"signing_secret\",\"allow_offline_access\":true,\"skip_consent_for_verifiable_first_party_clients\":true,\"token_lifetime\":1,\"token_lifetime_for_web\":1,\"enforce_policies\":true,\"token_dialect\":\"access_token\",\"token_encryption\":{\"format\":\"compact-nested-jwe\",\"encryption_key\":{\"alg\":\"RSA-OAEP-256\",\"pem\":\"pem\"}},\"consent_policy\":\"transactional-authorization-with-mfa\",\"proof_of_possession\":{\"mechanism\":\"mtls\",\"required\":true},\"client_id\":\"client_id\"}]}")); + "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"resource_servers\":[{\"id\":\"id\",\"name\":\"name\",\"is_system\":true,\"identifier\":\"identifier\",\"scopes\":[{\"value\":\"value\"}],\"signing_alg\":\"HS256\",\"signing_secret\":\"signing_secret\",\"allow_offline_access\":true,\"allow_online_access\":true,\"skip_consent_for_verifiable_first_party_clients\":true,\"token_lifetime\":1,\"token_lifetime_for_web\":1,\"enforce_policies\":true,\"token_dialect\":\"access_token\",\"token_encryption\":{\"format\":\"compact-nested-jwe\",\"encryption_key\":{\"alg\":\"RSA-OAEP-256\",\"pem\":\"pem\"}},\"consent_policy\":\"transactional-authorization-with-mfa\",\"proof_of_possession\":{\"mechanism\":\"mtls\",\"required\":true},\"client_id\":\"client_id\"}]}")); SyncPagingIterable response = client.resourceServers() .list(ListResourceServerRequestParameters.builder() .page(OptionalNullable.of(1)) @@ -71,7 +71,7 @@ public void testCreate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"is_system\":true,\"identifier\":\"identifier\",\"scopes\":[{\"value\":\"value\",\"description\":\"description\"}],\"signing_alg\":\"HS256\",\"signing_secret\":\"signing_secret\",\"allow_offline_access\":true,\"skip_consent_for_verifiable_first_party_clients\":true,\"token_lifetime\":1,\"token_lifetime_for_web\":1,\"enforce_policies\":true,\"token_dialect\":\"access_token\",\"token_encryption\":{\"format\":\"compact-nested-jwe\",\"encryption_key\":{\"name\":\"name\",\"alg\":\"RSA-OAEP-256\",\"kid\":\"kid\",\"pem\":\"pem\"}},\"consent_policy\":\"transactional-authorization-with-mfa\",\"authorization_details\":[{\"key\":\"value\"}],\"proof_of_possession\":{\"mechanism\":\"mtls\",\"required\":true,\"required_for\":\"public_clients\"},\"subject_type_authorization\":{\"user\":{\"policy\":\"allow_all\"},\"client\":{\"policy\":\"deny_all\"}},\"client_id\":\"client_id\"}")); + "{\"id\":\"id\",\"name\":\"name\",\"is_system\":true,\"identifier\":\"identifier\",\"scopes\":[{\"value\":\"value\",\"description\":\"description\"}],\"signing_alg\":\"HS256\",\"signing_secret\":\"signing_secret\",\"allow_offline_access\":true,\"allow_online_access\":true,\"skip_consent_for_verifiable_first_party_clients\":true,\"token_lifetime\":1,\"token_lifetime_for_web\":1,\"enforce_policies\":true,\"token_dialect\":\"access_token\",\"token_encryption\":{\"format\":\"compact-nested-jwe\",\"encryption_key\":{\"name\":\"name\",\"alg\":\"RSA-OAEP-256\",\"kid\":\"kid\",\"pem\":\"pem\"}},\"consent_policy\":\"transactional-authorization-with-mfa\",\"authorization_details\":[{\"key\":\"value\"}],\"proof_of_possession\":{\"mechanism\":\"mtls\",\"required\":true,\"required_for\":\"public_clients\"},\"subject_type_authorization\":{\"user\":{\"policy\":\"allow_all\"},\"client\":{\"policy\":\"deny_all\"}},\"client_id\":\"client_id\"}")); CreateResourceServerResponseContent response = client.resourceServers() .create(CreateResourceServerRequestContent.builder() .identifier("identifier") @@ -127,6 +127,7 @@ else if (actualJson.has("kind")) + " \"signing_alg\": \"HS256\",\n" + " \"signing_secret\": \"signing_secret\",\n" + " \"allow_offline_access\": true,\n" + + " \"allow_online_access\": true,\n" + " \"skip_consent_for_verifiable_first_party_clients\": true,\n" + " \"token_lifetime\": 1,\n" + " \"token_lifetime_for_web\": 1,\n" @@ -199,7 +200,7 @@ public void testGet() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"is_system\":true,\"identifier\":\"identifier\",\"scopes\":[{\"value\":\"value\",\"description\":\"description\"}],\"signing_alg\":\"HS256\",\"signing_secret\":\"signing_secret\",\"allow_offline_access\":true,\"skip_consent_for_verifiable_first_party_clients\":true,\"token_lifetime\":1,\"token_lifetime_for_web\":1,\"enforce_policies\":true,\"token_dialect\":\"access_token\",\"token_encryption\":{\"format\":\"compact-nested-jwe\",\"encryption_key\":{\"name\":\"name\",\"alg\":\"RSA-OAEP-256\",\"kid\":\"kid\",\"pem\":\"pem\"}},\"consent_policy\":\"transactional-authorization-with-mfa\",\"authorization_details\":[{\"key\":\"value\"}],\"proof_of_possession\":{\"mechanism\":\"mtls\",\"required\":true,\"required_for\":\"public_clients\"},\"subject_type_authorization\":{\"user\":{\"policy\":\"allow_all\"},\"client\":{\"policy\":\"deny_all\"}},\"client_id\":\"client_id\"}")); + "{\"id\":\"id\",\"name\":\"name\",\"is_system\":true,\"identifier\":\"identifier\",\"scopes\":[{\"value\":\"value\",\"description\":\"description\"}],\"signing_alg\":\"HS256\",\"signing_secret\":\"signing_secret\",\"allow_offline_access\":true,\"allow_online_access\":true,\"skip_consent_for_verifiable_first_party_clients\":true,\"token_lifetime\":1,\"token_lifetime_for_web\":1,\"enforce_policies\":true,\"token_dialect\":\"access_token\",\"token_encryption\":{\"format\":\"compact-nested-jwe\",\"encryption_key\":{\"name\":\"name\",\"alg\":\"RSA-OAEP-256\",\"kid\":\"kid\",\"pem\":\"pem\"}},\"consent_policy\":\"transactional-authorization-with-mfa\",\"authorization_details\":[{\"key\":\"value\"}],\"proof_of_possession\":{\"mechanism\":\"mtls\",\"required\":true,\"required_for\":\"public_clients\"},\"subject_type_authorization\":{\"user\":{\"policy\":\"allow_all\"},\"client\":{\"policy\":\"deny_all\"}},\"client_id\":\"client_id\"}")); GetResourceServerResponseContent response = client.resourceServers() .get( "id", @@ -228,6 +229,7 @@ public void testGet() throws Exception { + " \"signing_alg\": \"HS256\",\n" + " \"signing_secret\": \"signing_secret\",\n" + " \"allow_offline_access\": true,\n" + + " \"allow_online_access\": true,\n" + " \"skip_consent_for_verifiable_first_party_clients\": true,\n" + " \"token_lifetime\": 1,\n" + " \"token_lifetime_for_web\": 1,\n" @@ -309,7 +311,7 @@ public void testUpdate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"is_system\":true,\"identifier\":\"identifier\",\"scopes\":[{\"value\":\"value\",\"description\":\"description\"}],\"signing_alg\":\"HS256\",\"signing_secret\":\"signing_secret\",\"allow_offline_access\":true,\"skip_consent_for_verifiable_first_party_clients\":true,\"token_lifetime\":1,\"token_lifetime_for_web\":1,\"enforce_policies\":true,\"token_dialect\":\"access_token\",\"token_encryption\":{\"format\":\"compact-nested-jwe\",\"encryption_key\":{\"name\":\"name\",\"alg\":\"RSA-OAEP-256\",\"kid\":\"kid\",\"pem\":\"pem\"}},\"consent_policy\":\"transactional-authorization-with-mfa\",\"authorization_details\":[{\"key\":\"value\"}],\"proof_of_possession\":{\"mechanism\":\"mtls\",\"required\":true,\"required_for\":\"public_clients\"},\"subject_type_authorization\":{\"user\":{\"policy\":\"allow_all\"},\"client\":{\"policy\":\"deny_all\"}},\"client_id\":\"client_id\"}")); + "{\"id\":\"id\",\"name\":\"name\",\"is_system\":true,\"identifier\":\"identifier\",\"scopes\":[{\"value\":\"value\",\"description\":\"description\"}],\"signing_alg\":\"HS256\",\"signing_secret\":\"signing_secret\",\"allow_offline_access\":true,\"allow_online_access\":true,\"skip_consent_for_verifiable_first_party_clients\":true,\"token_lifetime\":1,\"token_lifetime_for_web\":1,\"enforce_policies\":true,\"token_dialect\":\"access_token\",\"token_encryption\":{\"format\":\"compact-nested-jwe\",\"encryption_key\":{\"name\":\"name\",\"alg\":\"RSA-OAEP-256\",\"kid\":\"kid\",\"pem\":\"pem\"}},\"consent_policy\":\"transactional-authorization-with-mfa\",\"authorization_details\":[{\"key\":\"value\"}],\"proof_of_possession\":{\"mechanism\":\"mtls\",\"required\":true,\"required_for\":\"public_clients\"},\"subject_type_authorization\":{\"user\":{\"policy\":\"allow_all\"},\"client\":{\"policy\":\"deny_all\"}},\"client_id\":\"client_id\"}")); UpdateResourceServerResponseContent response = client.resourceServers() .update("id", UpdateResourceServerRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -363,6 +365,7 @@ else if (actualJson.has("kind")) + " \"signing_alg\": \"HS256\",\n" + " \"signing_secret\": \"signing_secret\",\n" + " \"allow_offline_access\": true,\n" + + " \"allow_online_access\": true,\n" + " \"skip_consent_for_verifiable_first_party_clients\": true,\n" + " \"token_lifetime\": 1,\n" + " \"token_lifetime_for_web\": 1,\n" diff --git a/src/test/java/com/auth0/client/mgmt/UsersGroupsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersGroupsWireTest.java index 3113a4410..00a0e231f 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersGroupsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersGroupsWireTest.java @@ -41,7 +41,7 @@ public void testGet() throws Exception { 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}")); + "{\"groups\":[{\"id\":\"id\",\"name\":\"name\",\"external_id\":\"external_id\",\"connection_id\":\"connection_id\",\"tenant_name\":\"tenant_name\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"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( diff --git a/src/test/resources/wire-tests/ActionsVersionsWireTest_testDeploy_response.json b/src/test/resources/wire-tests/ActionsVersionsWireTest_testDeploy_response.json index 9e10d71c7..8cf134440 100644 --- a/src/test/resources/wire-tests/ActionsVersionsWireTest_testDeploy_response.json +++ b/src/test/resources/wire-tests/ActionsVersionsWireTest_testDeploy_response.json @@ -31,7 +31,7 @@ "name": "name", "supported_triggers": [ { - "id": "id" + "id": "post-login" } ], "all_changes_deployed": true, @@ -43,7 +43,7 @@ "updated_at": "2024-01-15T09:30:00Z", "supported_triggers": [ { - "id": "id", + "id": "post-login", "version": "version", "status": "status", "runtimes": [ @@ -52,7 +52,7 @@ "default_runtime": "default_runtime", "compatible_triggers": [ { - "id": "id", + "id": "post-login", "version": "version" } ], diff --git a/src/test/resources/wire-tests/ActionsVersionsWireTest_testGet_response.json b/src/test/resources/wire-tests/ActionsVersionsWireTest_testGet_response.json index 9e10d71c7..8cf134440 100644 --- a/src/test/resources/wire-tests/ActionsVersionsWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/ActionsVersionsWireTest_testGet_response.json @@ -31,7 +31,7 @@ "name": "name", "supported_triggers": [ { - "id": "id" + "id": "post-login" } ], "all_changes_deployed": true, @@ -43,7 +43,7 @@ "updated_at": "2024-01-15T09:30:00Z", "supported_triggers": [ { - "id": "id", + "id": "post-login", "version": "version", "status": "status", "runtimes": [ @@ -52,7 +52,7 @@ "default_runtime": "default_runtime", "compatible_triggers": [ { - "id": "id", + "id": "post-login", "version": "version" } ], diff --git a/src/test/resources/wire-tests/ActionsWireTest_testCreate_response.json b/src/test/resources/wire-tests/ActionsWireTest_testCreate_response.json index 2a515914f..920e0b82d 100644 --- a/src/test/resources/wire-tests/ActionsWireTest_testCreate_response.json +++ b/src/test/resources/wire-tests/ActionsWireTest_testCreate_response.json @@ -3,7 +3,7 @@ "name": "name", "supported_triggers": [ { - "id": "id", + "id": "post-login", "version": "version", "status": "status", "runtimes": [ @@ -12,7 +12,7 @@ "default_runtime": "default_runtime", "compatible_triggers": [ { - "id": "id", + "id": "post-login", "version": "version" } ], @@ -59,7 +59,7 @@ "name": "name", "supported_triggers": [ { - "id": "id" + "id": "post-login" } ], "all_changes_deployed": true, @@ -71,7 +71,7 @@ "updated_at": "2024-01-15T09:30:00Z", "supported_triggers": [ { - "id": "id" + "id": "post-login" } ], "modules": [ @@ -95,7 +95,7 @@ "current_release": { "id": "id", "trigger": { - "id": "id" + "id": "post-login" }, "required_secrets": [ {} diff --git a/src/test/resources/wire-tests/ActionsWireTest_testDeploy_response.json b/src/test/resources/wire-tests/ActionsWireTest_testDeploy_response.json index 9e10d71c7..8cf134440 100644 --- a/src/test/resources/wire-tests/ActionsWireTest_testDeploy_response.json +++ b/src/test/resources/wire-tests/ActionsWireTest_testDeploy_response.json @@ -31,7 +31,7 @@ "name": "name", "supported_triggers": [ { - "id": "id" + "id": "post-login" } ], "all_changes_deployed": true, @@ -43,7 +43,7 @@ "updated_at": "2024-01-15T09:30:00Z", "supported_triggers": [ { - "id": "id", + "id": "post-login", "version": "version", "status": "status", "runtimes": [ @@ -52,7 +52,7 @@ "default_runtime": "default_runtime", "compatible_triggers": [ { - "id": "id", + "id": "post-login", "version": "version" } ], diff --git a/src/test/resources/wire-tests/ActionsWireTest_testGet_response.json b/src/test/resources/wire-tests/ActionsWireTest_testGet_response.json index 2a515914f..920e0b82d 100644 --- a/src/test/resources/wire-tests/ActionsWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/ActionsWireTest_testGet_response.json @@ -3,7 +3,7 @@ "name": "name", "supported_triggers": [ { - "id": "id", + "id": "post-login", "version": "version", "status": "status", "runtimes": [ @@ -12,7 +12,7 @@ "default_runtime": "default_runtime", "compatible_triggers": [ { - "id": "id", + "id": "post-login", "version": "version" } ], @@ -59,7 +59,7 @@ "name": "name", "supported_triggers": [ { - "id": "id" + "id": "post-login" } ], "all_changes_deployed": true, @@ -71,7 +71,7 @@ "updated_at": "2024-01-15T09:30:00Z", "supported_triggers": [ { - "id": "id" + "id": "post-login" } ], "modules": [ @@ -95,7 +95,7 @@ "current_release": { "id": "id", "trigger": { - "id": "id" + "id": "post-login" }, "required_secrets": [ {} diff --git a/src/test/resources/wire-tests/ActionsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/ActionsWireTest_testUpdate_response.json index 2a515914f..920e0b82d 100644 --- a/src/test/resources/wire-tests/ActionsWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/ActionsWireTest_testUpdate_response.json @@ -3,7 +3,7 @@ "name": "name", "supported_triggers": [ { - "id": "id", + "id": "post-login", "version": "version", "status": "status", "runtimes": [ @@ -12,7 +12,7 @@ "default_runtime": "default_runtime", "compatible_triggers": [ { - "id": "id", + "id": "post-login", "version": "version" } ], @@ -59,7 +59,7 @@ "name": "name", "supported_triggers": [ { - "id": "id" + "id": "post-login" } ], "all_changes_deployed": true, @@ -71,7 +71,7 @@ "updated_at": "2024-01-15T09:30:00Z", "supported_triggers": [ { - "id": "id" + "id": "post-login" } ], "modules": [ @@ -95,7 +95,7 @@ "current_release": { "id": "id", "trigger": { - "id": "id" + "id": "post-login" }, "required_secrets": [ {} diff --git a/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json b/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json index 9aecdeda1..9f7ca6d8a 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json @@ -345,5 +345,9 @@ "resource_server_identifier": "resource_server_identifier", "async_approval_notification_channels": [ "guardian-push" - ] + ], + "external_metadata_type": "cimd", + "external_metadata_created_by": "admin", + "external_client_id": "external_client_id", + "jwks_uri": "jwks_uri" } \ No newline at end of file diff --git a/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json b/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json index 9aecdeda1..9f7ca6d8a 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json @@ -345,5 +345,9 @@ "resource_server_identifier": "resource_server_identifier", "async_approval_notification_channels": [ "guardian-push" - ] + ], + "external_metadata_type": "cimd", + "external_metadata_created_by": "admin", + "external_client_id": "external_client_id", + "jwks_uri": "jwks_uri" } \ No newline at end of file diff --git a/src/test/resources/wire-tests/ClientsWireTest_testList_response.json b/src/test/resources/wire-tests/ClientsWireTest_testList_response.json index 5996d0106..b2abc4a59 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testList_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testList_response.json @@ -87,7 +87,11 @@ "resource_server_identifier": "resource_server_identifier", "async_approval_notification_channels": [ "guardian-push" - ] + ], + "external_metadata_type": "cimd", + "external_metadata_created_by": "admin", + "external_client_id": "external_client_id", + "jwks_uri": "jwks_uri" } ] } \ No newline at end of file diff --git a/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json b/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json index 9aecdeda1..9f7ca6d8a 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json @@ -345,5 +345,9 @@ "resource_server_identifier": "resource_server_identifier", "async_approval_notification_channels": [ "guardian-push" - ] + ], + "external_metadata_type": "cimd", + "external_metadata_created_by": "admin", + "external_client_id": "external_client_id", + "jwks_uri": "jwks_uri" } \ No newline at end of file diff --git a/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json index 9aecdeda1..9f7ca6d8a 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json @@ -345,5 +345,9 @@ "resource_server_identifier": "resource_server_identifier", "async_approval_notification_channels": [ "guardian-push" - ] + ], + "external_metadata_type": "cimd", + "external_metadata_created_by": "admin", + "external_client_id": "external_client_id", + "jwks_uri": "jwks_uri" } \ No newline at end of file diff --git a/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json b/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json index 7c39ce647..3dc352a50 100644 --- a/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testGet_response.json @@ -38,6 +38,15 @@ ], "user_agents": [ "user_agents" + ], + "hostnames": [ + "hostnames" + ], + "connecting_ipv4_cidrs": [ + "connecting_ipv4_cidrs" + ], + "connecting_ipv6_cidrs": [ + "connecting_ipv6_cidrs" ] }, "not_match": { @@ -67,6 +76,15 @@ ], "user_agents": [ "user_agents" + ], + "hostnames": [ + "hostnames" + ], + "connecting_ipv4_cidrs": [ + "connecting_ipv4_cidrs" + ], + "connecting_ipv6_cidrs": [ + "connecting_ipv6_cidrs" ] }, "scope": "management" diff --git a/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json b/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json index 7c39ce647..3dc352a50 100644 --- a/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testSet_response.json @@ -38,6 +38,15 @@ ], "user_agents": [ "user_agents" + ], + "hostnames": [ + "hostnames" + ], + "connecting_ipv4_cidrs": [ + "connecting_ipv4_cidrs" + ], + "connecting_ipv6_cidrs": [ + "connecting_ipv6_cidrs" ] }, "not_match": { @@ -67,6 +76,15 @@ ], "user_agents": [ "user_agents" + ], + "hostnames": [ + "hostnames" + ], + "connecting_ipv4_cidrs": [ + "connecting_ipv4_cidrs" + ], + "connecting_ipv6_cidrs": [ + "connecting_ipv6_cidrs" ] }, "scope": "management" diff --git a/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json index 7c39ce647..3dc352a50 100644 --- a/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/NetworkAclsWireTest_testUpdate_response.json @@ -38,6 +38,15 @@ ], "user_agents": [ "user_agents" + ], + "hostnames": [ + "hostnames" + ], + "connecting_ipv4_cidrs": [ + "connecting_ipv4_cidrs" + ], + "connecting_ipv6_cidrs": [ + "connecting_ipv6_cidrs" ] }, "not_match": { @@ -67,6 +76,15 @@ ], "user_agents": [ "user_agents" + ], + "hostnames": [ + "hostnames" + ], + "connecting_ipv4_cidrs": [ + "connecting_ipv4_cidrs" + ], + "connecting_ipv6_cidrs": [ + "connecting_ipv6_cidrs" ] }, "scope": "management"